Connecting Tech Pros Worldwide Help | Site Map

putting a var in a row return

  #1  
Old November 10th, 2005, 09:55 PM
kiqyou_vf
Guest
 
Posts: n/a
is there any way to do this:

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

sorry for the newbie question. thanks

  #2  
Old November 10th, 2005, 09:55 PM
Andy Hassall
Guest
 
Posts: n/a

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
  #3  
Old November 10th, 2005, 10:15 PM
kiqyou_vf
Guest
 
Posts: n/a

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.

  #4  
Old November 10th, 2005, 10:35 PM
kiqyou_vf
Guest
 
Posts: n/a

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'];

  #5  
Old November 10th, 2005, 10:45 PM
Piotr Usewicz
Guest
 
Posts: n/a

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?
  #6  
Old November 11th, 2005, 08:15 PM
kiqyou_vf
Guest
 
Posts: n/a

re: putting a var in a row return


thats it. thanks!

Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
Putting a dialog box value into a specific GridView row RobertTheProgrammer answers 9 May 21st, 2008 06:47 PM
Dynamic radiobuttons with labels in IE ronnil answers 1 June 21st, 2007 10:36 AM
Gmail - dynamic Add Attachment - Reverse Engineering JavaScriptRocks answers 7 September 2nd, 2005 03:54 PM
how to highlight a row when on click and keep it highlighted until next click john woo answers 1 July 23rd, 2005 09:38 PM