RE: [PHP-DB] RE: eof
| From: | Harpreet | Date: | Wed, 17 Oct 2001 15:22:03 +0000 |
| Subject: | RE: [PHP-DB] RE: eof | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-13428@lists.php.net to get a copy of this message | ||
Thank u all so much.
Regards,
Harpreet Kaur
Software Developer
Crispin Corporations Inc.
-----Original Message-----
From: Rick Emery [mailto:remery@excel.com]
Sent: Wednesday, October 17, 2001 11:06 AM
To: 'harpreet@crispincorp.com'; php-db@lists.php.net
Subject: [PHP-DB] RE: eof
mysql_num_rows($result)
-----Original Message-----
From: Harpreet [mailto:harpreet@crispincorp.com]
Sent: Wednesday, October 17, 2001 10:13 AM
To: 'Rick Emery'; php-db@lists.php.net
Subject: eof
How can one check if no records r returned by a query?
For eg.,
<?php
$sqlstr="Select * from msg_operator_tbl where type= 'U' or type = 'MC'
order
by send_date desc";
$result = mysql_query($sqlstr);
?>
How can i check if mssql_query returned ne rows?
regards,
Harpreet Kaur
Software Developer
Crispin Corporations Inc.
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net
For additional commands, e-mail: php-db-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net