PHP and MySQL: Number of rows returned

前端 未结 2 1268
眼角桃花
眼角桃花 2021-01-15 12:41

How can I see how many rows the following query returns?

mysql_select_db($database_aoldatabase, $aoldatabase);

$query1 = \"select * from sale where secid  =         


        
2条回答
  •  执念已碎
    2021-01-15 13:28

    Use the function mysql_num_rows()

    Have a look at: http://nl3.php.net/manual/en/function.mysql-num-rows.php

提交回复
热议问题