Chapter 4 p. 134 exercise 1
On pp. 667-668 you provide a solution to exercise 1. When I display the page I get no average review and an error warning divide by zero.
$avgreview = $current/$totalreviews; which means it's not pulling any review_ratings from the database for $totalreviews = mysql_num_rows($query); No totalreviews and you are dividing by zero. Any thoughts? The rest of the page displays properly.
luciano
|