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()); } but I get error Unknown column '$isOn' in 'field list' any ideas Quote Link to comment https://forums.phpfreaks.com/topic/57803-replace-into/ Share on other sites More sharing options...
sushant_d84 Posted July 2, 2007 Share Posted July 2, 2007 Can u try this string ============== 'REPLACE INTO info_comments (Id, Text, isOn) VALUES (1, "'.mysql_escape_string($aboutus).'", "'.$isOn.'")' ================== Quote Link to comment https://forums.phpfreaks.com/topic/57803-replace-into/#findComment-287860 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.