Results 1 to 6 of 6
Thread: Quick php/mysql question.
Jun 4, 2007, 09:28 #1
- Join Date
- Jun 2004
- 0 Post(s)
- 0 Thread(s)
Quick php/mysql question.
hi, im trying to enter some values into my database vis my script im using this peice of code.
$sqlrun = "INSERT INTO 'netboomy_links.linkinfo' ('url' ,'decr' ) VALUES ('$_POST[url]', '$_POST[discription]') "; echo "Sql Query"; echo $sqlrun; if(!mysql_db_query("netboomy_links",$sqlrun,$dbh)) die(mysql_error());
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''netboomy_links.linkinfo' ('url' ,'decr' ) VALUES ('http://www.PleaseWork.com', ' at line 1
I've had a play around with it but cant seem to see what is wrong with it. any help would be great.