PHP3: eval() problem AGAIN
| From: | Grant Walters | Date: | Sat, 21 Oct 2000 22:36:57 +0000 |
| Subject: | PHP3: eval() problem AGAIN | ||
| Groups: | php.general php.general | ||
| Request: | Send a blank email to php-general+get-21595@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
--
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