no uploading into database

05-08-06, 02:07 PM
|
|
Newbie Coder
|
|
Join Date: Apr 2006
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
|
no uploading into database
does anyone have a clue why my php script doesn't update the value's into his/here database?
this is the script:
|

05-08-06, 02:31 PM
|
 |
Community Liaison
|
|
Join Date: May 2005
Location: Antwerp, Belgium
Posts: 3,165
Thanks: 4
Thanked 25 Times in 25 Posts
|
|
what's the error?
Greetz,
UnrealEd
__________________
"Good judgement comes from experience, and experience comes from bad judgement." - Fred Brooks
|

05-08-06, 02:41 PM
|
|
Newbie Coder
|
|
Join Date: Apr 2006
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
there's no error; but when i check my database there's nothing in PL1
and when i do
he doesnt vieuw the value of $pl1
so my thoughts are he doesn't have anything in $_POST["pl1"]
but i can't figger out why
|

05-08-06, 03:19 PM
|
 |
Community Liaison
|
|
Join Date: May 2005
Location: Antwerp, Belgium
Posts: 3,165
Thanks: 4
Thanked 25 Times in 25 Posts
|
|
can you put this page online? that way i can check it myself.
i recommend you to study the arrays in php, as you are using this many variables. It will make your script much, much smaller (i think about 50 lines).
Greetz,
UnrealEd
__________________
"Good judgement comes from experience, and experience comes from bad judgement." - Fred Brooks
|

05-08-06, 03:35 PM
|
 |
Community VIP
|
|
Join Date: Oct 2005
Location: Denver, Co. USA
Posts: 2,674
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
I can give you part of a reason why - the submit form at the very end, which causes the mysql query, does not contain any fields that cause $_POST variables to be set. Any existing variables or $_POST variables that exist in the script, don't once the submit button is pressed and the script starts over.
__________________
Error checking, error reporting, and error recovery. If your code does not have these to get it to tell you why it is not working, what makes you think someone in a programming forum will be able to tell you why it is not working???
|

05-09-06, 01:46 PM
|
|
Newbie Coder
|
|
Join Date: Apr 2006
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
is there then a way to get them after i press the submit button?
|

05-09-06, 03:22 PM
|
|
Newbie Coder
|
|
Join Date: Jan 2006
Location: UK
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
The quick way to find out what's going on is put the following at the start of your page...
print_r($_REQUEST);
The _REQUEST object contains the contents of the _GET and _POST arrays - so you can see exactly what you are carrying from the form.
Also, why not just print the SQL to the screen too.
|

05-09-06, 03:53 PM
|
 |
Community VIP
|
|
Join Date: Oct 2005
Location: Denver, Co. USA
Posts: 2,674
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Quote:
|
Originally Posted by pieteke
is there then a way to get them after i press the submit button?
|
You need to make them hidden input fields within that form (preferred way) or you could add them on to the end of the action= statement in the same way that you are doing with the id (less preferred way.)
__________________
Error checking, error reporting, and error recovery. If your code does not have these to get it to tell you why it is not working, what makes you think someone in a programming forum will be able to tell you why it is not working???
|

05-10-06, 06:10 PM
|
|
Newbie Coder
|
|
Join Date: Apr 2006
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
i can't figger out wats the problem.
i've tryed several things and nothing works
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|