Re: [PHP-DB] replacing dynamic variable in preg_replace

2004-09-15 Thread John Holmes
Steve Morgan wrote: I am working on a script which takes a list of variables form a database. The problem i am currently having is some of the variables have other variables in the content , i.e. $temp="$title" (made up example), is something that might come out of the mysql. $query=mysql_qu

[PHP-DB] replacing dynamic variable in preg_replace

2004-09-15 Thread Steve Morgan
I am working on a script which takes a list of variables form a database. The problem i am currently having is some of the variables have other variables in the content , i.e. $temp="$title" (made up example), is something that might come out of the mysql. $query=mysql_query("SELECT `code`,`