Easy but dont know how :)?
Posted: Mon Jan 02, 2006 7:42 am
How to siplay how many lines in for e.g. users table ? I want to siplay how many users registered allready.
A community of PHP developers offering assistance, advice, discussion, and friendship.
http://forums.devnetwork.net/
Code: Select all
$res = mysql_query('select count(*) as count from user_table');
$rows = mysql_fetch_assoc($res);
echo "we have a total of ".$rows['count']." Registered users";