diff options
| author | cflem <carson.fl3ming@gmail.com> | 2016-12-29 20:44:33 -0700 |
|---|---|---|
| committer | cflem <carson.fl3ming@gmail.com> | 2016-12-29 20:44:33 -0700 |
| commit | d2f5f561ae62f63eda9cb1017178d676abb3d2ef (patch) | |
| tree | ae51e462fad55ec61b95656c0b89912c3e78c276 /dash | |
| parent | 878bfb30a710c26ba4306d531d7d48d8c452ef5c (diff) | |
| download | bulletin-d2f5f561ae62f63eda9cb1017178d676abb3d2ef.tar.gz | |
First draft ads.php
Diffstat (limited to 'dash')
| -rw-r--r-- | dash/.ads.php.swp | bin | 0 -> 12288 bytes | |||
| -rw-r--r-- | dash/ads.php | 19 |
2 files changed, 19 insertions, 0 deletions
diff --git a/dash/.ads.php.swp b/dash/.ads.php.swp Binary files differnew file mode 100644 index 0000000..cd67f43 --- /dev/null +++ b/dash/.ads.php.swp diff --git a/dash/ads.php b/dash/ads.php new file mode 100644 index 0000000..b096ee9 --- /dev/null +++ b/dash/ads.php @@ -0,0 +1,19 @@ +<?php +define('HEIRARCHY', 1); + +require('dash_common.php'); +$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); +if ($result->num_rows < 1) fatal('No ad with this ID has been found.'); +$row = $result->fetch_assoc(); +?> + <div id="fulljob"> + + </div> +<?php +$result->free(); +require('footer.php'); +?> |
