Forum Moderators: coopster
This should be easy but i can not get to work, bearing in mind i'm still learning.
What id like to have the number of products or rows in my db displayed in certain catagorys on my site, but stuck at the first hurdle of trying to understand the code and get it to work.
I think this may be wrong. I have searched this site for more cluse but can't see anything.
<?php
virtual('/include.php');
$sql = "SELECT COUNT (*) FROM products ";
$row = mysql_fetch_array($result);
{
echo $result[0];
}
?>
I have no error message or nothing, the whole page renders as it should. I have also played around with code by changing parts but no good.
Your help as always will be great.
Many thanks in advance
Ski442