Solved

How to update database from a datagrid style form.

Posted on 2011-03-23
4
231 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

WordPress Tutorial 1: Installation & Setup

WordPress is a very popular option for running your web site and can be used to get your content online quickly for the world to see. This guide will walk you through installing the WordPress server software and the initial setup process.

Question has a verified solution.

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

This article discusses four methods for overlaying images in a container on a web page
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
The viewer will learn how to dynamically set the form action using jQuery.
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.

622 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