RE: [PHP] Parsing database variables

From: Date: Fri, 30 Mar 2007 20:50:26 +0000
Subject: RE: [PHP] Parsing database variables
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-251799@lists.php.net to get a copy of this message
[snip] I have a database table with this in it: <p>$name<p> Period Ending Date: $ppe<p> Etc....... And in my script, these variables exist and have values. Is there a way for me to get the output from mysql_query to use the current script variables in place of the same variable name within the database output? [/snip] a. Bad HTML, always use a closing tag like </p> b. Check http://www.php.net/eval

« previous php.general (#251799) next »