RE: [PHP-DB] if else question

2002-04-07 Thread Gurhan Ozen
Hi Jenn, Since the function mysql_num_rows returns an integer, you can't just say if (mysql_num_rows($result)) ... Try to get the number of the rows and write an if statement according to that, or you can use something like while(mysql_fetch_array($result)) { . } Gurhan -Original Message

Re: [PHP-DB] If else Question

2002-03-27 Thread ted
Jennifer: Did you ever get your If else Question answered? On Mon, 25 Mar 2002, Jennifer Downey wrote: > Hi all, > > I have a table called pets, here is a partial dump: > At this time this is all I am working with. > > > uid int(10) NOT NULL default '0', > num_pet tinyint(1) NOT NULL default