|
Subject:
|
Chapter 4 p. 134 exercise 1
|
|
Posted By:
|
luciano991
|
Post Date:
|
8/16/2006 7:22:23 AM
|
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
|
|