a simple way is to do select $form as new_column_name from structure"; as
the query.
thus the return value of you column will be in new_column_name.

Vinay


joffrey leevy wrote:

> 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/
>
> --
> MySQL General Mailing List
> For list archives: http://lists.mysql.com/mysql
> To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]


-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]

Reply via email to