putting a var in a row return

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • kiqyou_vf

    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

  • Andy Hassall

    #2
    Re: putting a var in a row return

    On 10 Nov 2005 13:44:48 -0800, "kiqyou_vf" <sorensong@gmai l.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.u k :: http://www.andyh.co.uk
    http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool

    Comment

    • kiqyou_vf

      #3
      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.

      Comment

      • kiqyou_vf

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

        Comment

        • Piotr Usewicz

          #5
          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?

          Comment

          • kiqyou_vf

            #6
            Re: putting a var in a row return

            thats it. thanks!

            Comment

            Working...