Jump to content

Replace Into


samsbc12

Recommended Posts

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);

Link to comment
https://forums.phpfreaks.com/topic/57804-replace-into/#findComment-286423
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.