Reply
Php form updates database table
Old 11-04-2009, 01:33 PM Php form updates database table
Super Talker

Posts: 109
Name: Not Telling
Trades: 0
Does anyone have a simple script that a form can update a value in a database table.

Something simple that updates.

Like

First Name

Last Name

Email

Are the 3 columns.

There will also be an session with a user logged in, so can someone make it work with the id, as the id will be the row to update.
__________________
MY MSN: Sith717@Hotmail.com
PHP, HTML, and CSS Coding, Logo and Web Design - Professionally done.
PM me anytime for HTML, PHP or web design help. I will be glad to help you out.
sith717 is offline
Reply With Quote
View Public Profile
 
 
When You Register, These Ads Go Away!
Old 11-04-2009, 02:04 PM Re: Php form updates database table
webcosmo's Avatar
Ultra Talker

Posts: 267
Location: Boston, MA
Trades: 1
check this out http://www.w3schools.com/php/php_mysql_update.asp
__________________
JOIN US * FAST GROWING WEBMASTER FORUM * JOIN US
Join the fun loving, helpful community of webmasters
Free Classified Ads
webcosmo is offline
Reply With Quote
View Public Profile Visit webcosmo's homepage!
 
Old 11-04-2009, 02:11 PM Re: Php form updates database table
Super Talker

Posts: 109
Name: Not Telling
Trades: 0
How do I do it with a form?

It doesnt really help me. :P
__________________
MY MSN: Sith717@Hotmail.com
PHP, HTML, and CSS Coding, Logo and Web Design - Professionally done.
PM me anytime for HTML, PHP or web design help. I will be glad to help you out.
sith717 is offline
Reply With Quote
View Public Profile
 
Old 11-04-2009, 02:15 PM Re: Php form updates database table
Super Talker

Posts: 109
Name: Not Telling
Trades: 0
This is more of what I need:

http://www.w3schools.com/PHP/php_mysql_insert.asp

But can you make it so it updates the code based on the Id.
__________________
MY MSN: Sith717@Hotmail.com
PHP, HTML, and CSS Coding, Logo and Web Design - Professionally done.
PM me anytime for HTML, PHP or web design help. I will be glad to help you out.
sith717 is offline
Reply With Quote
View Public Profile
 
Old 11-11-2009, 03:11 AM Re: Php form updates database table
webcosmo's Avatar
Ultra Talker

Posts: 267
Location: Boston, MA
Trades: 1
Quote:
Originally Posted by sith717 View Post
This is more of what I need:

http://www.w3schools.com/PHP/php_mysql_insert.asp

But can you make it so it updates the code based on the Id.
There you go, you have found the jackpot
__________________
JOIN US * FAST GROWING WEBMASTER FORUM * JOIN US
Join the fun loving, helpful community of webmasters
Free Classified Ads
webcosmo is offline
Reply With Quote
View Public Profile Visit webcosmo's homepage!
 
Old 11-11-2009, 04:11 AM Re: Php form updates database table
tripy's Avatar
Do not try this at home!

Posts: 3,176
Name: Thierry
Location: I'm the uber Spaminator !
Trades: 0
You don't need a script, you need to learn what sql is and it' syntax:
http://www.tizag.com/sqlTutorial/sqlupdate.php

Once you know that, you will be able to do what you want.
__________________
Only a biker knows why a dog sticks his head out the window.
tripy is online now
Reply With Quote
View Public Profile Visit tripy's homepage!
 
Reply     « Reply to Php form updates database table
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 



Page generated in 0.11650 seconds with 13 queries