$query=mysql_query("SELECT `code`,`varname` FROM `k_sys`");
$code=preg_replace("/--(\w+)--/","$$1",$code); // PROBLEM
is the current code, i'm setting off variables with a --, so if variables $title, is in the mysql, the above example would be <h1>--title--</h1> instead. When i do the above i would just get like $title as an output. I think its due to how mysql is storing the information, but a stripslashes didnt work. If anyone can help it'd be much appreciated.
-- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php