Solved

How to update database from a datagrid style form.

Posted on 2011-03-23
4
228 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

Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
This article discusses how to create an extensible mechanism for linked drop downs.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

803 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