PHP3: eval() problem

From: Date: Fri, 20 Oct 2000 02:05:08 +0000
Subject: PHP3: eval() problem
Groups: php.general php.general 
Request: Send a blank email to php-general+get-21317@lists.php.net to get a copy of this message
Hi, Hoping somebody can help/ I'm creating generic single record editing forms from within a database and want to pass the where clause to MySQL, so... I want to put something like ID='$SessionParms[\"User_ID\"]' into the Mysql database and then build my string $WhereClause = "ID='$SessionParms[\"User_ID\"]'"; // Value Taken From Database eval("\$Query =\" SELECT * FROM Table WHERE \$WhereCluse\";"); I can't seem to get it to work at all. Any help would be really appreciated. Regards Grant Walters Walters & Associates, P O Box 13-043 Johnsonville, Wellington, NEW ZEALAND Telephone: +64 4 4765175, CellPhone 025488265

« previous php.general (#21317) next »