random1 Posted March 12, 2009 Share Posted March 12, 2009 Hi All, This is related to MySQL but is a PHP question. I need to insert backticks (`) into database fields. I've tried and am told that ` needs to be inserted as ``` , (surrounded by backticks). How can use PHP to filter through an SQL statement and have it replace any ` within '' with ```? Link to comment https://forums.phpfreaks.com/topic/149085-inserting-backtick/ Share on other sites More sharing options...
ILMV Posted March 12, 2009 Share Posted March 12, 2009 replace('`','```'); Surely that would do it? ILMV Link to comment https://forums.phpfreaks.com/topic/149085-inserting-backtick/#findComment-782825 Share on other sites More sharing options...
Mchl Posted March 12, 2009 Share Posted March 12, 2009 I think you got wrong information. Backticks are inserted just like regular characters. Link to comment https://forums.phpfreaks.com/topic/149085-inserting-backtick/#findComment-782826 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.