include("db.inc"); $query = "SELECT username FROM user_table WHERE id='$id'"; $result = query_db($query); // did we get anything back if (count($result) != 0) { while (list($key, $arr) = each($result)) { $row = $arr; // get a row $username = $row['username']; } } ?>
| User: $user | Date: $date |
| "; if ($type == 1) { $positives++; $ratetext .= "Praise"; } if ($type == 0) { $neutrals++; $ratetext .= "Neutral"; } if ($type == -1) { $negatives++; $ratetext .= "Complaint"; } $ratetext .= ": $comment |
positives, neutrals, and negatives.
} else { ?> This person does not have ratings } include("footer.php"); ?>