RE: [PHP] php - no results - display other message

From: Date: Wed, 15 Sep 2004 05:05:04 +0000
Subject: RE: [PHP] php - no results - display other message
Groups: php.general 
Request: Send a blank email to php-general+get-196693@lists.php.net to get a copy of this message
mysql_num_rows () will tell you how many rows return in the query > [Original Message] > From: Dustin Krysak <mailinglists@digitalcollision.com> > To: PHP <php-general@lists.php.net> > Date: 09/14/2004 9:37:24 PM > Subject: [PHP] php - no results - display other message > > Hi there... I have a simple search page (mysql database), and I can get > it to display the results no issues, but i was wondering how I could > display a message stating there were no results, instead of just having > the field blank. I am familiar with IF and ELSE statements, but I am > not sure how to test the "no result" option from the results of a SQL > query.... > > thanks! > > d > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.general (#196693) next »