/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 Hartvigsson
  • Date: 2013-04-15 22:24:25 UTC
  • Revision ID: gustav.hartvigsson@gmail.com-20130415222425-lez45gq9v06tqfid
* Opitimised add user code
* images are no longer stored as base64 encoded strings.

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>