diff options
author | Mateja <mail@matejamaric.com> | 2020-10-02 12:46:32 +0200 |
---|---|---|
committer | Mateja <mail@matejamaric.com> | 2020-10-02 12:46:32 +0200 |
commit | 0d8992a2762d6a2b983d9aa1c2944d6cebef7371 (patch) | |
tree | dae38e899cad27a3605b16a3ffabb56983da16c7 /index.php | |
parent | 6a290235781cbca58dd1d102d030110b4eb0c6c9 (diff) | |
download | old-php-yota-0d8992a2762d6a2b983d9aa1c2944d6cebef7371.tar.gz old-php-yota-0d8992a2762d6a2b983d9aa1c2944d6cebef7371.zip |
Starting direct work...
Made SQL notes.
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -36,11 +36,11 @@ session_start(); echo '<div style="overflow-x:auto;">'; echo "<table>\n"; - echo "<tr>"; + echo "<thead><tr>"; echo "<th>Ime</th>"; echo "<th>Prezime</th>"; echo "<th>Godine</th>"; - echo "</tr>\n"; + echo "</tr></thead><tbody>\n"; foreach($db->query("SELECT * FROM $table where approved=true") as $row) { echo "<tr>"; @@ -50,7 +50,7 @@ session_start(); echo "</tr>\n"; } - echo "</table>\n</div>\n"; + echo "</tbody></table>\n</div>\n"; } catch (PDOException $e) { echo "<p>Error!: " . $e->getMessage() . "</p>"; die(); |