Search This Blog

Thursday, 22 January 2015

Find the number of rows in a table using MySQL.

<?php

$count=mysql_query("select count(colum_name) from table_name");

while($row2=mysql_fetch_array($count))

{

echo $row2['colum_name'];

}

?>

No comments:

Post a Comment