How can I see how many rows the following query returns?
mysql_select_db($database_aoldatabase, $aoldatabase); $query1 = \"select * from sale where secid =
Use the function mysql_num_rows()
mysql_num_rows()
Have a look at: http://nl3.php.net/manual/en/function.mysql-num-rows.php