From e079a930d2797d9e94cc2e1848e4634c43adb6ba Mon Sep 17 00:00:00 2001 From: Carson Fleming Date: Wed, 12 Apr 2017 17:03:36 -0400 Subject: Finished up Reed\'s suggestions --- dash/profile.php | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'dash/profile.php') diff --git a/dash/profile.php b/dash/profile.php index 8a448b5..3c63ad4 100644 --- a/dash/profile.php +++ b/dash/profile.php @@ -51,6 +51,30 @@ $phonelink = '+'.preg_replace('/[^0-9]/', '', $user['phone']);

Open a Chat

+
+

Past Reviews

+query('SELECT ratings.stars, ratings.comment, users.id AS uid, users.name, users.picture, ads.id AS adid, ads.title FROM ratings INNER JOIN users ON users.id = ratings.rater INNER JOIN ads ON ads.id = ratings.job WHERE ratings.rated = '.$user['id']) or dash_fatal($db->error); +echo '

Based on '.$result->num_rows.' jobs completed.'; +if ($result->num_rows < 1) echo '

This user has never been reviewed.

'; +while ($row = $result->fetch_assoc()) { +?> +
+
+

+

Profile Picture

+

Based on

+
+
+

+

No comment provided.' : htmlentities($row['comment']);?>

+
+
+free(); +?> +