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 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.'")' ================== Link to comment https://forums.phpfreaks.com/topic/57803-replace-into/#findComment-287860 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.