I was wonder if I could pass variables from my database and load it into my page with BBCODE?
Here is what I tried to do...
in the mysql database I have this...
[var=firstname]
and this is the bbcode...
$text = preg_replace("#\[var=([^ \"\n\r\t<]*?)\]#si", $var_open, $text);
$var_open = str_replace('{VAR}', '\\1', '${VAR}');
This only returns the variable name, not the actual variable
any help would be great!
Thanks!