Re: [PHP] database query problem

2004-12-03 Thread Greg Donald
On Fri, 3 Dec 2004 19:47:27 +0200, Ahmed Abdel-Aliem <[EMAIL PROTECTED]> 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.c

[PHP] database query problem

2004-12-03 Thread Ahmed Abdel-Aliem
Hi, i have a page which views th content of tables, each row in one page, there is a combo box which shows the IDs of each row, and when user click on one, it redirects him to the same page with the new ID there is two problems. when there is no records in the dataabse i get mysql error. and when i