If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > PHP > Possibly Array

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-02-03, 14:22
cmptrguru7 cmptrguru7 is offline
Registered User
 
Join Date: Feb 2002
Posts: 43
Possibly Array

I am trying to create a page that will display information in a text box making it availaible for updating. For example I have a table in my database which holds the following:

Field 1 = ID
Field 2 = Number
Field 3 = Number

The pages looks like this:

Field 1 Field 2 Field3
1 2.00 2.00
2 3.00 3.00
.
.
etc....

The user has the ability to change the values in field 1, field 3, or both. When the user clicks submit I want the database to update the values for the partciular ID they are associated with. I am trying to figure out the best possible way of posting this infomration and then updating it in the database. Any help would be appreciated.
Reply With Quote
  #2 (permalink)  
Old 12-02-03, 16:09
sundialsvcs sundialsvcs is offline
Registered User
 
Join Date: Oct 2003
Posts: 706
Thumbs up

I always think it's a good idea to let the user make several changes, then press "OK" to actually carry them out. That of course involves retrieving the records to an array, allowing edits to be made against that array, and using the array to issue SQL requests when (and if) the user presses OK.

The code to do all of that is mundane, but I really like to see that capability in a web-site or any other app.
__________________
ChimneySweep(R): fast, automatic
table repair at a click of the
mouse! http://www.sundialservices.com
Reply With Quote
  #3 (permalink)  
Old 12-02-03, 17:08
cmptrguru7 cmptrguru7 is offline
Registered User
 
Join Date: Feb 2002
Posts: 43
Quote:
Originally posted by sundialsvcs
I always think it's a good idea to let the user make several changes, then press "OK" to actually carry them out. That of course involves retrieving the records to an array, allowing edits to be made against that array, and using the array to issue SQL requests when (and if) the user presses OK.

The code to do all of that is mundane, but I really like to see that capability in a web-site or any other app.

Thanks for the help.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On