Current location: Hot Scripts Forums » Programming Languages » PHP » updating a table - php


updating a table - php

Reply
  #1 (permalink)  
Old 03-26-08, 09:58 PM
Dangar Dangar is offline
New Member
 
Join Date: Mar 2008
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
updating a table - php

hi all,
im having some trouble updating a table using php.

i am able to add one entry to the table, using a submit button, but i would like to keep adding to this table.

i have an index.php, an adddoc.php, and a savedoc.php. so i am using sessions.

i heard this can be done with MySQL, but i would rather not use this because i am not familiar with it.
i think that what i want to do can be done with an array. any suggestions???

any help is much appreciated!
Reply With Quote
  #2 (permalink)  
Old 03-27-08, 12:19 AM
INTEL INTEL is offline
Newbie Coder
 
Join Date: Mar 2005
Posts: 60
Thanks: 0
Thanked 0 Times in 0 Posts
so you want to have several text boxes and then click on submit once to add several rows to the table? where is the table information being stored ?
Reply With Quote
  #3 (permalink)  
Old 03-27-08, 11:50 AM
Dangar Dangar is offline
New Member
 
Join Date: Mar 2008
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
here is my link

here is the link to my page:
http://personalwebs.oakland.edu/~dag...***3/index.php

i just need to make it so the add document page continues to add to the table.
right now i can only make one add to the table, the next time through it overwrites the entry.

you start off at index.php, then the add button takes you to adddoc.php, then the save button will save the information in a session on savedoc.php and then automatically direct you back to index.php
they all have have sessions in them

like i said, i think this is done using an array i just dont know where to put the array or what kind of array it will be. any info would help. thanks!
Reply With Quote
  #4 (permalink)  
Old 03-28-08, 04:19 AM
UnrealEd's Avatar
UnrealEd UnrealEd is offline
Community Liaison
 
Join Date: May 2005
Location: Antwerp, Belgium
Posts: 3,165
Thanks: 4
Thanked 25 Times in 25 Posts
Quote:
Originally Posted by Dangar View Post
i just need to make it so the add document page continues to add to the table.
right now i can only make one add to the table, the next time through it overwrites the entry.
That sounds like you're UPDATE-ing the table instead of INSERT-ing. Can you post the code you're using?

As for the others, replace *** with a.s.s (without the dots) in the http://personalwebs.oakland.edu/~dag...***3/index.php url
__________________
"Good judgement comes from experience, and experience comes from bad judgement." - Fred Brooks

Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Error when trying to create MySQL table via PHP HasansWeb PHP 5 05-19-11 06:59 AM
php developer needed for updating a script majids Job Offers & Assistance 7 03-21-08 02:02 PM
PHP: Different table entry from same form? Stormrider Script Requests 3 05-07-05 08:19 AM
How to get PHP to input data into a MYSQL table? scl789 PHP 5 04-21-05 09:06 PM
100 Web Templates & 10 PHP Scripts for sale! HostersUK.co.uk General Advertisements 0 01-10-04 12:31 AM


All times are GMT -5. The time now is 07:39 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.