Hey there.
I have just constructed my first PHP/MySQL script, and despite careful debugging, can’t seem to find the source of this error:
Warning: mysql_result(): supplied argument is not a valid MySQL result resource in /fpgs/fpgshttpd/nsac/index.php on line 20Warning: mysql_result(): supplied argument is not a valid MySQL result resource in /fpgs/fpgshttpd/nsac/index.php on line 21
Warning: mysql_result(): supplied argument is not a valid MySQL result resource in /fpgs/fpgshttpd/nsac/index.php on line 22
Now, I’ve gone through the entire thing, and I can’t seem to find the problem. These are lines 20, 21, and 22:
$date=mysql_result($date,$i,"date"); $news=mysql_result($news,$i,"news"); $tag=mysql_result($tag,$i,"tag");
I’ve quintuple-checked my database, and I’m certain that there are columns called “date”, “news”, and “tag”.
I must be overlooking something incredibly stupid.
Thanks so much in advance for your help.