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


Go to topic 18903

Return to index page 202
Return to index page 201
Return to index page 200
Return to index page 199
Return to index page 198
Return to index page 197
Return to index page 196
Return to index page 195
Return to index page 194
Return to index page 193