/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 17:47:10 UTC
  • mfrom: (27.1.1 extremedating)
  • Revision ID: maila@danieljohansson.nu-20130413174710-cuht5n7xdwmflyiv
Merge

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
?>