Why do I get an error ?

Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.

Moderator: General Moderators

Post Reply
geethalakshmi
Forum Commoner
Posts: 31
Joined: Thu Apr 24, 2008 10:38 pm

Why do I get an error ?

Post by geethalakshmi »

Why do I get an error that looks something like this: "Warning: 0 is not a MySQL result index in <file> on line <x>" or "Warning: Supplied argument is not a valid MySQL result resource in <file> on line <x>"?

Regards,
geetha
http://codingcoding.com
http://0123456789.co.in
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Re: Why do I get an error ?

Post by pickle »

How do you expect us to give a detailed answer without even seeing your code?

That error message generally means exactly what it says - the mysql result resource you're trying to use isn't valid - your query's probably messed up.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
Post Reply