$query_count="SELECT COUNT(*) FROM table";
$result_count = mysql_query($query_count);
$final_count=mysql_fetch_array($result_count);
echo $final_count[0];
This cause the website to "loop" (page never loads, browser runs out of memory). any idea how to do it?