|
I have been wondering how I would go about adding data from users in a form (firstname,lastname, email) and then putting that data into a mysql database. Is this possible? Are there any tutorials on how to do this, if not could you show me the code? Any help would be greatly appreciated. Thanks for your time. Dom |
|
Below I have written up some code for you with detailed comments, if there's anything down there that you don't understand just send me an email: @live.com">n00ne@live.com.au
1
If you specify which fields you're filling in data for you wouldn't have to worry about the id slot. If you have the id field in your table set with auto_increment and as the primary key you could do a query like "INSERT INTO users ( I know. I said that ID should be set to autoincrement in the comments in the code.. |
|
Sorry if this double posts - it did not appear for me. Thank you all for your links / code it has really helped me with what i was looking for. I realise that I still needed to leave a blank gap for the auto-incrementing id so wat I put as a first name value was infact going to the id section and so forth. Once again I thank you all for your help. |
