Counting total number of rows in resultset using php and mysql
$sql="select * from users where username='Micheal' AND password='123456'";
$resultset=mysql_query($sql);
$total=mysql_num_rows($resultset);
echo $total;
So this is the way to find out total number of rows in resultset using php and mysql.
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment