By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,287 Members | 1,644 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,287 IT Pros & Developers. It's quick & easy.

editing a MySQL row

P: 22
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 :)
Aug 21 '08 #1
Share this Question
Share on Google+
2 Replies


10K+
P: 13,264
...

Is that the quickest and most efficient way?..
Yes .
Aug 21 '08 #2

gits
Expert Mod 5K+
P: 5,390
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
Aug 21 '08 #3

Post your reply

Sign in to post your reply or Sign up for a free account.