Count No. of rows in mysql

by satheeshkumar 2012-07-14 10:28:04

Count No. of rows in mysql,


$result = mysql_query("SELECT * FROM tablename", $dblink);
$num_rows = mysql_num_rows($result);

echo "$num_rows Rows\n";

Tagged in:

764
like
0
dislike
0
mail
flag

You must LOGIN to add comments