Daniel Clark [EMAIL PROTECTED] wrote on 04/06/2004 03:27:34 PM:
I think you need a WHERE clause for the UPDATE, otherwise it will update
ALL the records.
e.g. WHERE OwnerName='$result'
Then perhaps a redirect to another page.
Thanks for the reminder. I set that, and found the problem
For the submit button to work it has to be in a form.
FORM ACTION=blah_blah.php METHOD=post
INPUT TYPE=submit
/FORM
Hope this helps.
Daniel Clark
pcenterinput type=submit name=submit value=Update
Data/center/p
... more code ...
/table
?
endif;
?
/body
/html
Daniel Clark [EMAIL PROTECTED] wrote on 04/07/2004 10:17:36 AM:
For the submit button to work it has to be in a form.
FORM ACTION=blah_blah.php METHOD=post
INPUT TYPE=submit
/FORM
Hope this helps.
Daniel Clark
Of course, I didn't notice I left that line out of my code, although I
Something I like to do during troubleshooting is to have the page display
the SQL statement I'm processing.
Something like: print sql_query ;
That was I can verify all the parameters are correct.
Do you have autocommit ON? Or need to pass a commit statement?
Daniel Clark
Of course, I
I have an existing web page that pulls some data and displays it in form
input fields. I would like to add the ability to edit those fields and
submit the changes to the server, but have been unsuccessful. What bit of
code do I need to add to the existing code?
This is the existing code to
I think you need a WHERE clause for the UPDATE, otherwise it will update
ALL the records.
e.g. WHERE OwnerName='$result'
Then perhaps a redirect to another page.
I probably need to use if(isset($submit)): and an update statement, but my
attempt just causes the web page to display completely
Chip Wiegand wrote:
I have an existing web page that pulls some data and displays it in form
input fields. I would like to add the ability to edit those fields and
submit the changes to the server, but have been unsuccessful. What bit of
code do I need to add to the existing code?
This is the
7 matches
Mail list logo