Connecting Tech Pros Worldwide Help | Site Map

putting a var in a row return

 
LinkBack Thread Tools Search this Thread
  #1  
Old November 10th, 2005, 08:55 PM
kiqyou_vf
Guest
 
Posts: n/a
Default putting a var in a row return

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, 08:55 PM
Andy Hassall
Guest
 
Posts: n/a
Default 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, 09:15 PM
kiqyou_vf
Guest
 
Posts: n/a
Default 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, 09:35 PM
kiqyou_vf
Guest
 
Posts: n/a
Default 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, 09:45 PM
Piotr Usewicz
Guest
 
Posts: n/a
Default 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, 07:15 PM
kiqyou_vf
Guest
 
Posts: n/a
Default Re: putting a var in a row return

thats it. thanks!

 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,989 network members.