Re: Why $row is EMPTY

From: Date: Wed, 30 Apr 2008 00:01:52 +0000
Subject: Re: Why $row is EMPTY
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-44924@lists.php.net to get a copy of this message
Nasreen Laghari wrote:
Hi, Why my program is not going in while loop? When I run the same query in SQL cmd, it brings result but here when I print $result gives Resouce ID number means $result has data then why $row is empty.
No, it means the query worked. If it wasn't a resource it would be false (eg an sql error). See how many rows are returned: echo mysql_num_rows($result); What does that query return when you run it outside of php? -- Postgresql & php tutorials http://www.designmagick.com/

« previous php.db (#44924) next »