Connecting Tech Pros Worldwide Help | Site Map

putting a var in a row return

kiqyou_vf
Guest
 
Posts: n/a
#1: Nov 10 '05
is there any way to do this:

$edit_field = $_GET['edit_field'];
$row_return[' $edit_field '];

sorry for the newbie question. thanks

Andy Hassall
Guest
 
Posts: n/a
#2: Nov 10 '05

re: putting a var in a row return


On 10 Nov 2005 13:44:48 -0800, "kiqyou_vf" <sorensong@gmail.com> wrote:
[color=blue]
>is there any way to do this:
>
>$edit_field = $_GET['edit_field'];
>$row_return[' $edit_field '];[/color]

This line does nothing; what exactly did you want it to do?
--
Andy Hassall :: andy@andyh.co.uk :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool
kiqyou_vf
Guest
 
Posts: n/a
#3: Nov 10 '05

re: putting a var in a row return


What I'm trying to do is edit a specific field in a row. So if you
click on Edit Description, it gives you what is currently in the
database, and also a textbox with the current description with the
option to change it.

kiqyou_vf
Guest
 
Posts: n/a
#4: Nov 10 '05

re: putting a var in a row return


I'm sorry, this is more accurate.

$edit_field = $_GET['edit_field'];
print $row_return['$edit_field'];

Piotr Usewicz
Guest
 
Posts: n/a
#5: Nov 10 '05

re: putting a var in a row return


kiqyou_vf napisaƂ(a):[color=blue]
> I'm sorry, this is more accurate.
>
> $edit_field = $_GET['edit_field'];
> print $row_return['$edit_field'];
>[/color]

Hm... Try:

print $row_return[$edit_field];

Is that it?
kiqyou_vf
Guest
 
Posts: n/a
#6: Nov 11 '05

re: putting a var in a row return


thats it. thanks!

Closed Thread