Hi there,
I have a script that is supposed to connect to a dabase and do an INSERT statement. However, the damned thing isn't working for reasons I cannot comprehend.
All of the connecting works fine, without any errors. However, when I run the query, it throws this error:
Warning: 0 is not a MySQL link index in /usr/local/etc/httpd/vhosts/thudbuster.com/htdocs/store/robot.php on line 168
The query is:
mysql_query($sql);
There's nothing wrong with the SQL code; I tried it from the command line and it worked perfectly.
Huh? My link is simply what I got from a statement like so:
$db = mysql_connect("localhost","MYUSER","MYPASS");
What gives?