473,804 Members | 2,755 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

editing a MySQL row

22 New Member
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
2 1589
r035198x
13,262 MVP
...

Is that the quickest and most efficient way?..
Yes .
Aug 21 '08 #2
gits
5,390 Recognized Expert Moderator Expert
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

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

Similar topics

0
1794
by: Bob Kaku | last post by:
I'm trying to create a text editing and updating capability to help someone who wants to maintain content on a web page without having to know any HTML or use a web authoring tool and FTP'ng the contents. I've already created a screen whereby the person can create new content with a PHP program that inserts into a MySQL table. But, I'm having a little trouble in creating the edit/update functionality. Can somebody help me out? Thanks. ...
4
3668
by: webhigh | last post by:
Iım not sure if this a PHP question or an MySQL question but here it goes. I have a repeat region of a table called userid What Iım trying to accomplish is being able to edit the record and then update it by clicking a submit button on the same line. Iım doing it this way so the user can quickly update a number of records one at a time. I know I could do this by passing the userid info to a detail page but really want to do it the way...
0
1406
by: Allan Allan Ebdrup | last post by:
Hi I'm looking for the best webinterface for editing database data, for example publishing a table with foreign keys shown as a dropdown. I don't care what database the interface is for (MSSQL, MySQL, Oracle, MySQL, Access, Filemaker, PostgreSQL, ...), and the price of the software is also "irrelevant", I just want the best piece of software. Any help would be greatly appreciated. What do you use? Note: Follow-Up is set to the...
1
1529
by: Ux | last post by:
ServerSide: PHP+MySql ClientSide: JS (IE5+, Moz1.7) I need to edit an HTML table that contains records from a table in MySQL. A MsAccess datagrid or similar behaviour should be the best, but it's not strictly requested by users. It is my first datagrid editing in HTML+JS so I need to plan a common implementation strategy for all datagrids in my app.
0
1217
by: windandwaves | last post by:
Hi Gurus I was wondering if you know of any good php class for editing mysql data from a users point of view. Kind of like PHP My Admin but then really simple and efficient. I have a look at www.phpclasses.org, but have not been able to find anything. Thank you
3
2223
by: asadikhan | last post by:
Hi, I am trying to use a datalist to edit data in a MySql database as follows. For now I just want to be able to get the changes to be made on the dataset. Here is my code: using System; using System.Configuration; using System.Collections; using System.ComponentModel;
1
8294
by: kristian | last post by:
Hi all I have a simple form with not much more than a datagridview control, and want to show and edit the contents of a table in my mysql table. So far I have managed to set the db table as a datasource for the datagridview, and display the contents. Code bit: public partial class FormEditDbTable : Form
12
1818
by: dino d. | last post by:
hi everyone- my subject pretty much says it all- is there a secure way to do this? the non-secure ways are, as i understand it, to populate a listbox with indices as names, or maybe use a hidden control. is the only secure way with sessions? i was also thinking about perhaps creating a meta table that says who is editing which record right now. any advice? thanks, dino
5
1330
by: radhikamrudhu | last post by:
hi i am not getting the editable gridview using code behind...... i am using mysql and vb for coding please help me....... asp:DataGrid ID="dg1" Style="z-index: 101; left: 160px; position: absolute; top: 112px" runat="server" AutoGenerateColumns="False" DataKeyField="statesId" OnEditCommand="DoItemEdit" OnDeleteCommand="DoItemDelete" OnUpdateCommand="DoItemUpdate" BackColor="White" ...
0
9576
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10568
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10323
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10311
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10074
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5516
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5647
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3813
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2988
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.