PDA

View Full Version : Get result from mysql



todda
December 17th, 2003, 11:04
Hi all.

I have a Table called forums and a Field called forum_id in that table.


It is possible to show how many forum_id there is in my index.php


thanks!


Todda

bloodyveins
December 18th, 2003, 05:15
this should be in "Programming Help" section" :)

Loon
December 20th, 2003, 14:48
$total = "SELECT COUNT(*) FROM forums";
$result = mysql_query($total);
$count = mysql_result($result,0);

echo "There are $count entries in the table";