editing a MySQL row

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • JackRbt
    New Member
    • Aug 2008
    • 22

    editing a MySQL row

    I have contact info (name, address, phone) in a MySQL table. I read the rows with PHP and present the rows in an HTML table. What's the best way of allowing editing of any row?

    What I'm doing so far is to display each cell in an HTML textfield. I put an edit button and a delete button at the start of every row. Each row is within <form> tags. That way, the contents of each textfield will be submitted and can be used to update the MySQL row.

    Is that the quickest and most efficient way? I'm not interested in doing it in Ajax now, I just want to get it done :)
  • r035198x
    MVP
    • Sep 2006
    • 13225

    #2
    Originally posted by JackRbt
    ...

    Is that the quickest and most efficient way?..
    Yes .

    Comment

    • gits
      Recognized Expert Moderator Expert
      • May 2007
      • 5388

      #3
      without using ajax ... yes (so you are right) ... otherwise ... no :) ... since it is just a complete page-reload everytime a submit occurs and therefor it cannot be that efficient as an ajax-call could be ... just to point that out :)

      kind regards

      Comment

      Working...