while ($reviews = mysql_array(mysql_query("SELECT * FROM reviews WHERE productid = ".$id.""))) {
echo $reviews['review'];
}
<?php
$id='1';//id of the product
$q=mysql_fetch_row(mysql_query('SELECT COUNT(*) FROM reviews WHERE productid = '.$id));
echo 'there are '.$q[0].' reviews';
?>
Category Forum
General DiscussionLabels
None yet
Statistics
4 participants
Notifications
You are not receiving notifications from this thread.
Related Questions