MySql update form script?

01-09-04, 10:23 AM
|
|
Coding Addict
|
|
Join Date: Jan 2004
Posts: 267
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
|
MySql update form script?
Have anyone got a simple form script that can be used to input data to a table on MySql?
i.e
name
address
age
sex
MySql Table-
Name--Address-------Age-----Sex
john---22 smith rd----29------male
david--21 smith rd----22------male
Last edited by dihan; 01-09-04 at 10:33 AM.
|

01-09-04, 10:39 AM
|
 |
Community VIP
|
|
Join Date: Aug 2003
Location: K.S.A
Posts: 2,257
Thanks: 0
Thanked 2 Times in 1 Post
|
|
good luck 
__________________
PHPSimplicity
We don't need a reason to help people - Zidane [FF9]
Last edited by NeverMind; 01-09-04 at 10:47 AM.
|

01-09-04, 11:07 AM
|
|
Coding Addict
|
|
Join Date: Jan 2004
Posts: 267
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Hey I tried out this: but no luck I thought it may have somthing to do with "<form name='guestlist' method='post'>" cause of the " ' ". Could that be it?
http://www.selectguestlist.com/index/update.php
|

01-09-04, 11:34 AM
|
 |
Community VIP
|
|
Join Date: Aug 2003
Location: K.S.A
Posts: 2,257
Thanks: 0
Thanked 2 Times in 1 Post
|
|
opps I forgot something very important ..
try this one now :
it should redirct the posted into itself !! now this form submits the info to itself so you don't need any other file to do the process on the submitted info ..
this one should do
btw I tried the link you provided , after I submit why does it pass the vars in the URL ?
__________________
PHPSimplicity
We don't need a reason to help people - Zidane [FF9]
Last edited by NeverMind; 01-09-04 at 11:39 AM.
|

01-09-04, 12:16 PM
|
 |
Community VIP
|
|
Join Date: Aug 2003
Location: K.S.A
Posts: 2,257
Thanks: 0
Thanked 2 Times in 1 Post
|
|
you need to change 'table' to the real table name in the query ..
I've seen the error which comes after submition ..
__________________
PHPSimplicity
We don't need a reason to help people - Zidane [FF9]
Last edited by NeverMind; 01-09-04 at 12:24 PM.
|

01-09-04, 12:21 PM
|
|
Coding Addict
|
|
Join Date: Jan 2004
Posts: 267
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
I called the table - table as it was a test but thats probably not a good idea. I'll just chnage it to something else
|

01-09-04, 12:26 PM
|
|
Coding Addict
|
|
Join Date: Jan 2004
Posts: 267
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Quote:
|
Originally Posted by NeverMind
you need to change 'table' to the real table name in the query ..
I've seen the error which comes after submition ..
|
I just did the Type as text. Could that be a problem
Field Type Attributes Null Default Extra Action
name text No Change Drop Primary Index Unique Fulltext
address text No Change Drop Primary Index Unique Fulltext
age text No Change Drop Primary Index Unique Fulltext
sex text No Change Drop Primary Index Unique Fulltext
Check All / Uncheck All With selected: Or
|

01-10-04, 02:44 AM
|
 |
Community VIP
|
|
Join Date: Aug 2003
Location: K.S.A
Posts: 2,257
Thanks: 0
Thanked 2 Times in 1 Post
|
|
I've seen that you'd removed the quote in the values ..
now try this query :
this is really strange ! I don't know what is the problem ..
maybe you didn't select the right database or the table !?
__________________
PHPSimplicity
We don't need a reason to help people - Zidane [FF9]
|

01-10-04, 03:35 AM
|
|
Coding Addict
|
|
Join Date: Jan 2004
Posts: 267
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
|
Go it
OK dont call your table - "table" or "update", that was the problem.
Thanks for the help NeverMind, I think I'm going to put you/your site on the credits for this website. :-)
|
|
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
|
|
|
|