What does this error message means - Warning: Supplied argument is not a valid MySQL result resource and how do you solve it?
I think you got this message from PHP.
You get this message when you are trying to access $result variable, but there is nothing in this variable because of WRONG SQL command before.