Re: how to determine if a mysql query returns an empty set?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





Nitsan Bin-Nun wrote:
mysql_num_rows() maybe? if not I probably haven't understood your question.


Thanks, I never thought of trying that.  This code works!

       $mysqli_get_requests = mysqli_query($mysqli,$get_requests);
               if (!mysqli_num_rows($mysqli_get_requests))
                       {
                       echo "You have reached the end of the results.
                       Please press the back button.
                       <form action=/helpdesk/login.php method=post><input
                       type=submit value=Back
                       name=submit></form></body></html>";
                       exit;
                       }



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux