What happens when the query fails, and $result is false, instead of a resource ? My guess is that there is an error in the query or it's not connecting correctly.
Reputation Points: 557
Solved Threads: 734
Bite my shiny metal ass!
Offline 4,207 posts
since Jul 2006