$ of variables, php, mysql
| From: | Joffrey Leevy | Date: | Tue, 25 Nov 2003 05:42:30 +0000 |
| Subject: | $ of variables, php, mysql | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-170849@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/