/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: Gustav Hatvigsson
  • Date: 2013-04-13 09:08:25 UTC
  • Revision ID: gustav.hartvigsson@gmail.com-20130413090825-sroxyu1gu3hylw5f
Initial commit

Show diffs side-by-side

added added

removed removed

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