I'm feeling really dumb now, I see examples of code that will do a count (*) but I still get stuck.
Here's the code I have at the moment,
$sql = "select count(DividerID)as num_rows from divider ";
$result=mysql_query($sql);
$row = mysql_fetch_array( $result );
echo $row["num_rows"];
This give me the output :
Dividers
14
. Is there a way to output just the number "14" alone, without the Dividers showing?
Thanks.