dalton6275 Posted April 11, 2006 Share Posted April 11, 2006 I have an 'insert into database' code which i am trying to make the table the information is inserted to dependant on a URL variable i am carrying across from the previous page. My code is [code]if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "form1")) { $insertSQL = sprintf("INSERT INTO %s (Monthref, percentage) VALUES (%s, %s)", GetSQLValueString($_POST['sla'], "text"), GetSQLValueString($_POST['month'], "date"), GetSQLValueString($_POST['slapercent'], "int"));[/code]but it is not liking the 1st %s code in the 'INSERT INTO %s'Anyone know how i can remedy this??? Quote Link to comment Share on other sites More sharing options...
Barand Posted April 11, 2006 Share Posted April 11, 2006 What does $_POST['sla'] contain? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.