From 4f12fecebcd3f2a5bc6a0e7cdf9c420af4ed435a Mon Sep 17 00:00:00 2001 From: Carson Fleming Date: Thu, 16 Feb 2017 23:59:34 -0500 Subject: Did the profile --- dash/ads.php | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'dash/ads.php') diff --git a/dash/ads.php b/dash/ads.php index fa7f715..97bfa3e 100644 --- a/dash/ads.php +++ b/dash/ads.php @@ -9,6 +9,7 @@ require('header.php'); $result = $db->query('SELECT ads.id, ads.title, ads.pay, ads.time, ads.location, ads.description, users.name, users.email, users.phone, users.picture, users.bio, SUM(ratings.stars) / COUNT(ratings.stars) AS rating FROM ads INNER JOIN users ON users.id = ads.uid LEFT JOIN ratings ON ratings.rated = ads.uid WHERE ads.id = '.$adid.' LIMIT 1') or dash_fatal($db->error); if ($result->num_rows < 1) dash_fatal('No ad with this ID has been found.'); $row = $result->fetch_assoc(); +$result->free(); ?>
@@ -28,12 +29,7 @@ else echo ' Profile Picture'.PHP_EOL; ?>

-Employer Not Rated

'.PHP_EOL; -else - echo '

'.intval($row['rating']).' Star Employer

'.PHP_EOL; -?> +

No bio included in profile.' : htmlentities($row['bio']));?>

@@ -50,6 +46,5 @@ $phonelink = '+'.preg_replace('/[^0-9]/', '', $row['phone']);
free(); require('footer.php'); ?> -- cgit v1.2.3