LMPX.COM |
Home | Linux | Mysql | PHP | XML | ||
|
|
|||
From: Chris Date: Tue Apr 29 18:01:52 2008 Subject: Re: Why $row is EMPTY
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/
| Navigate in group php.db at sever news.php.net | |
| Previous | Next |
| © No Copyright You are free to use Anything |
Site Maintained by PHP Developer
Powered By PHP Consultants |