From d2f5f561ae62f63eda9cb1017178d676abb3d2ef Mon Sep 17 00:00:00 2001 From: cflem Date: Thu, 29 Dec 2016 20:44:33 -0700 Subject: First draft ads.php --- dash/.ads.php.swp | Bin 0 -> 12288 bytes dash/ads.php | 19 +++++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 dash/.ads.php.swp create mode 100644 dash/ads.php diff --git a/dash/.ads.php.swp b/dash/.ads.php.swp new file mode 100644 index 0000000..cd67f43 Binary files /dev/null and b/dash/.ads.php.swp differ 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 @@ +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(); +?> +
+ +
+free(); +require('footer.php'); +?> -- cgit v1.2.3