What happened to reading the manual and trying to fix it yourself first (or at least telling what you've tried and what the results were)? Now it looks like you're just dumping your code and are waiting for a fix. If you would've read the
manual, you would've known that when a boolean is returned instead of a resource, the query didn't succeed. Two hints to work with:
By the way, a warning is not the same as an error. An error did indeed occur, but because you didn't properly catch it. All you saw was a warning when you tried to continue after the error.
__________________