Re: help on db search
| From: | Julie Meloni | Date: | Tue, 01 Aug 2000 16:56:21 +0000 |
| Subject: | Re: help on db search | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-9479@lists.php.net to get a copy of this message | ||
Kurth Bemis wrote:
> i'd like to be able to insert a message saying "no homes matched your
> querry" when no homes are returned.
count the number of rows in the result set using the mysql_num_rows()
function. If number of rows doesn't equal at least one, then print the
message.
- julie
+------------------------------------------------+
| Julie Meloni (jcm@i2ii.com) |
| Tech. Director, i2i Interactive (www.i2ii.com) |
| |
| "PHP Essentials" & "PHP Fast & Easy" |
| http://www.thickbook.com/ |
+------------------------------------------------+