diff options
| author | cflem <carson.fl3ming@gmail.com> | 2016-12-29 20:46:52 -0700 |
|---|---|---|
| committer | cflem <carson.fl3ming@gmail.com> | 2016-12-29 20:46:52 -0700 |
| commit | f3ccfd60aef505e9910b5914a5ca1e1052e7b263 (patch) | |
| tree | 2324871cfd7b4911a710b3f4839ece6d5c0ff378 /dash/ads.php | |
| parent | c2a65b401edcf2cca4a57ffaaedfac1a263ff723 (diff) | |
| download | bulletin-f3ccfd60aef505e9910b5914a5ca1e1052e7b263.tar.gz | |
Added the word SELECT
Diffstat (limited to 'dash/ads.php')
| -rw-r--r-- | dash/ads.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dash/ads.php b/dash/ads.php index b096ee9..e77f779 100644 --- a/dash/ads.php +++ b/dash/ads.php @@ -6,7 +6,7 @@ $adid = intval($_GET['id']); if ($adid < 1) fatal('No ad ID has been provided. You must have reached this page in error.'); $title = 'Ad / Bulletin'; require('header.php'); -$result = $db->query('ads.title, ads.pay, ads.time, ads.location, ads.description, users.name, users.email, users.zipcode, users.phone, users.picture, users.address FROM ads INNER JOIN users ON users.id = ads.uid WHERE ads.id = '.$adid.' LIMIT 1') or fatal($db->error); +$result = $db->query('SELECT ads.title, ads.pay, ads.time, ads.location, ads.description, users.name, users.email, users.zipcode, users.phone, users.picture, users.address FROM ads INNER JOIN users ON users.id = ads.uid WHERE ads.id = '.$adid.' LIMIT 1') or fatal($db->error); if ($result->num_rows < 1) fatal('No ad with this ID has been found.'); $row = $result->fetch_assoc(); ?> |
