strings of variables,php, sql

From: Date: Tue, 25 Nov 2003 05:36:29 +0000
Subject: strings of variables,php, sql
Groups: php.db 
Request: Send a blank email to php-db+get-31733@lists.php.net to get a copy of this message
Would appreciate in anyone can help me. Let's say I do a query in php, eg. $query = "select shed from structure"; With the mysql_fetch_array function and a loop I could see all the values stored in the column, shed, using the command: echo $shed; Let's say now that I am carrying over a variable from a form called $form where $form = shed. I can still say $query = "select $form from structure"; because $form = shed. The problem I have now is with the strings and how do I see my column values. Using echo $$value; or echo $($value) or echo \$$value or echo $"$value" does not give me the values stored in the column shed. Help anyone? thanks __________________________________ Do you Yahoo!? Free Pop-Up Blocker - Get it now http://companion.yahoo.com/

« previous php.db (#31733) next »