RE: [PHP] Variable question

From: Date: Mon, 07 May 2001 20:27:17 +0000
Subject: RE: [PHP] Variable question
Groups: php.general 
Request: Send a blank email to php-general+get-51824@lists.php.net to get a copy of this message
I understand that, but that's what I'm trying to get around doing. -Justin -----Original Message----- From: CC Zona <cczona@nospam.invalid> Sent: Monday, May 07, 2001 1:24 PM To: php-general@lists.php.net Subject: Re: [PHP] Variable question In article <D887D52AE0BEFA459B5ED84F8A45DFE501D0B5@adminex00.superior.k12.wi.us>, KingJ@superior.k12.wi.us ("King, Justin") wrote: > A simple eval($mysqldata) isn't going to do it though since the string > is "Your username is $userdata["username"]"; it'll just spit a parse > error. I've already tried that The code being eval'd has to be a valid PHP statement. So if you want to echo that string, then "echo" must be part of the eval'd code. Terminated with semi-colon, etc. eval("echo 'Your username is ' . $userdata['username'];"); -- CC -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#51824) next »