Re: database query problem
| From: | Greg Donald | Date: | Fri, 03 Dec 2004 19:58:58 +0000 |
| Subject: | Re: database query problem | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-203464@lists.php.net to get a copy of this message | ||
On Fri, 3 Dec 2004 19:47:27 +0200, Ahmed Abdel-Aliem <me2resh@gmail.com> wrote:
> when there is no records in the dataabse i get mysql error.
So wrap your while( mysql_fetch_array() ) with if( mysql_num_rows() ).
--
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/