Mysql error

They have: 2 posts

Joined: Jan 2002

Can someobody please tell me how to fix this, or what the heck this it error means:

Warning: Supplied argument is not a valid MySQL result resource in /home/sites/site21/web/vbportal/modules/Photo_Gallery/classes/database/mysql/Database.php on line 35

please help

Mark Hensler's picture

He has: 4,048 posts

Joined: Aug 2000

Welcome to TWF, alanvo.

Can we see the code? It's hard to tell exactly what caused the error without seeing what's going on. It could be a problem with the mySQL query, or there might be a problem with the PHP.

Mark Hensler
If there is no answer on Google, then there is no question.

mairving's picture

They have: 2,256 posts

Joined: Feb 2001

Yeah, it would help to see your code but more than likely it is probably a database connection (username, password) gone badly. It can't connect to the database so your SQL query errors out.

Mark Irving
I have a mind like a steel trap; it is rusty and illegal in 47 states

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.