/extremedating/trunk

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/extremedating/trunk

« back to all changes in this revision

Viewing changes to look_in_db.php

  • Committer: Daniel Johansson
  • Date: 2013-04-14 05:12:33 UTC
  • mfrom: (52.1.3 extremedating)
  • Revision ID: maila@danieljohansson.nu-20130414051233-b20jfdvg8xvqxmky
Merge

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<html>
 
2
        <body>
 
3
                <?php
 
4
                        include "./php/db.php";
 
5
<<<<<<< TREE
 
6
                        $query = "SELECT * FROM planLunch";
 
7
=======
 
8
                        $query = "SELECT * FROM Interests";
 
9
>>>>>>> MERGE-SOURCE
 
10
                        $userinfo = $db->query($query);
 
11
                        $fetch = $userinfo->fetchAll();
 
12
                        echo '<table border="1">';
 
13
                        foreach ($fetch as $fetcha) {
 
14
                                echo "<tr>";
 
15
                                foreach ($fetcha as $fetchb) {
 
16
                                        echo "<td>";
 
17
                                        echo $fetchb;
 
18
                                        echo "</td>";
 
19
                                }
 
20
                        echo "</tr>";
 
21
                        }
 
22
                echo "</table>";
 
23
                ?>
 
24
        </body>
 
25
</html>