Solved

How to update database from a datagrid style form.

Posted on 2011-03-23
4
229 Views
Last Modified: 2012-05-11
Hi experts,

http://www.fobgfc.org/sq1a.php

My problem here is how to update the database via the save button (which currently does nothing).  Of course data may have been changed on other pages which will need writing to the db.  I could save each page as loads of session variables, but apparently this isn't the most secure method? and with telephone numbers I need to be careful.

The pagination is done by a package which I am reluctant to tamper with, so updating every time I move page isn't an option.

On the real db there would be about 500 rows.

Thanks and regards,

    Colin
0
Comment
Question by:colinspurs
  • 3
4 Comments
 
LVL 5

Accepted Solution

by:
zazagor earned 500 total points
ID: 35198612
Hi,
What kind of database are you using?
Try adding an action to the savebutton which loads a "save-to-database.php" file.

//zaZagor
0
 
LVL 3

Author Comment

by:colinspurs
ID: 35198885
mysql

My problem is keeping track of all the fields.
0
 
LVL 3

Author Comment

by:colinspurs
ID: 35280732
Any help please?

How is this usually done?

Ta,

   Col
0
 
LVL 3

Author Closing Comment

by:colinspurs
ID: 36395067
I didn't realise I don't need to keep track of all the changes between pages. I am going the jeditable/datatables route.
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

These days socially coordinated efforts have turned into a critical requirement for enterprises.
Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

831 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question