Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

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

Posts: 115
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:
Please login or register to view this content. Registration is FREE

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
 
 
Register now for full access!
Old 11-04-2009, 02:04 PM Re: Php form updates database table
Banned

Posts: 421
Location: Boston, MA
Trades: 1
check this out http://www.w3schools.com/php/php_mysql_update.asp
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: 115
Name: Not Telling
Trades: 0
How do I do it with a form?

It doesnt really help me. :P
__________________
MY MSN:
Please login or register to view this content. Registration is FREE

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: 115
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:
Please login or register to view this content. Registration is FREE

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
Banned

Posts: 421
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
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,621
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 offline
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.34433 seconds with 12 queries