MyBB Community Forums

Full Version: find_replace_templatesets() Need some help
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I need to include a variable in a template

this is what i'm using

find_replace_templatesets("postbit_inlinecheck", '#'.preg_quote('value=').'#', 
$db->escape_string('value="{$postcounter}"'));

what it returns is this

 value=\"{$postcounter}\"""

but the correct form should be like this

value="{$postcounter}"

WHat I'm doing wrong here?
$db->escape_string() is only when you call $db-> yourself.
(2014-07-23, 12:56 PM)frostschutz Wrote: [ -> ]$db->escape_string() is only when you call $db-> yourself.

thanks I got .... Smile