samsbc12 Posted June 30, 2007 Share Posted June 30, 2007 I am trying if ($REQUEST_METHOD=="POST") { mysql_query('REPLACE INTO info_comments (Id, Text, isOn) VALUES (1, "'.mysql_escape_string($aboutus).'", $isOn)') or die(mysql_error()); } a but I get error Unknown column '$isOn' in 'field list' any ideas Quote Link to comment Share on other sites More sharing options...
bubblegum.anarchy Posted June 30, 2007 Share Posted June 30, 2007 Pretty much just switch the double and single quotes. settype($isOn, "integer"); mysql_query($query = " REPLACE INTO info_comments (Id, Text, isOn) VALUES (1, '".mysql_escape_string($aboutus)."', {$isOn})") or trigger_error(mysql_error()."<PRE>".$query."</PRE>", E_USER_ERROR); 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.