/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-13 19:42:41 UTC
  • Revision ID: maila@danieljohansson.nu-20130413194241-7f2xjsttrcvdu2w0
DerpingĀ around

Show diffs side-by-side

added added

removed removed

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