aboutsummaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
authorMateja <mail@matejamaric.com>2020-10-02 19:36:16 +0200
committerMateja <mail@matejamaric.com>2020-10-02 19:36:16 +0200
commit86613978c06546af098e96ed9b9496a3dd67ad62 (patch)
treea4f1fce8b99146bf9d1f2b267ed28c89a2beadd0 /index.php
parent0d8992a2762d6a2b983d9aa1c2944d6cebef7371 (diff)
downloadold-php-yota-86613978c06546af098e96ed9b9496a3dd67ad62.tar.gz
old-php-yota-86613978c06546af098e96ed9b9496a3dd67ad62.zip
Work on reservation...
Diffstat (limited to 'index.php')
-rw-r--r--index.php22
1 files changed, 14 insertions, 8 deletions
diff --git a/index.php b/index.php
index 938534c..6fd938b 100644
--- a/index.php
+++ b/index.php
@@ -26,7 +26,7 @@ session_start();
<main>
<?php
$user = "yota_user";
- $password = "leex3EThieK0ieLaiVaicaifef5eecei";
+ $password = "gahdeer6shai9hogai2sai4quuaj1eVu";
$database = "yota_call_db";
$table = "activities";
@@ -37,16 +37,22 @@ session_start();
echo '<div style="overflow-x:auto;">';
echo "<table>\n";
echo "<thead><tr>";
- echo "<th>Ime</th>";
- echo "<th>Prezime</th>";
- echo "<th>Godine</th>";
+ echo "<th>Operator</th>";
+ echo "<th>From</th>";
+ echo "<th>To</th>";
+ echo "<th>Special sign</th>";
+ echo "<th>Frequencies</th>";
+ echo "<th>QSO</th>";
echo "</tr></thead><tbody>\n";
- foreach($db->query("SELECT * FROM $table where approved=true") as $row) {
+ foreach($db->query("SELECT * FROM $table where approved=false ORDER BY `id` DESC") as $row) {
echo "<tr>";
- echo "<td>" . $row['name'] . "</td>";
- echo "<td>" . $row['surname'] . "</td>";
- echo "<td>" . $row['age'] . "</td>";
+ echo "<td>" . $row['operatorCall'] . "</td>";
+ echo "<td>" . $row['fromTime'] . "</td>";
+ echo "<td>" . $row['toTime'] . "</td>";
+ echo "<td>" . $row['specialCall'] . "</td>";
+ echo "<td>" . $row['frequencies'] . "</td>";
+ echo "<td>" . $row['qso'] . "</td>";
echo "</tr>\n";
}