Jump to content

[SOLVED] stripslashes messing up my code samples


floppydrivez

Recommended Posts

Where your inserting into the db

 

$t_text = mysql_real_escape_string(stripslashes(FixQuotes($t_text)));

 

Where your outputting (to combat the extra ')

        $lousymarks = array("''''", "''");
        $mypage[t_text] = str_replace($lousymarks, "'", $mypage[t_text]);

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.