Dec 30, 2009, 02:33 PM
|
1
#1 of 6
|
I think that the first thing you should do is print out $query and see what it's really trying to do. Since you're not a programmer, you need to learn how to approach a problem like this logically and devise a set of tests to help narrow down the source of the problem.
Here the error message isn't very clear, but usually the target of the WHERE clause is in single quotes (e.g., WHERE `Reporter` LIKE '$source'.) This also means you need to be using double quotes (") for your string instead of single quotes (') so that PhP isn't confused about where the string ends. ($query = "Select ... etc.)
How ya doing, buddy?
Slightly Dark -- updated weekly with rare out-of-print game music.
Last edited by Secret Squirrel; Dec 30, 2009 at 02:35 PM.
|