Update multiple columns in a database

Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.

Moderator: General Moderators

Post Reply
amiira
Forum Newbie
Posts: 8
Joined: Thu Jan 04, 2007 3:50 pm

Update multiple columns in a database

Post by amiira »

Hi all!

got a problem:

I want to update, from a form, 2 columns (the same row) in my database just by klicking on my submit button in my form.

My form consists of texfield and textarea...


how do i do that MySQL query...

please help!


/Amiira[/b]
User avatar
Burrito
Spockulator
Posts: 4715
Joined: Wed Feb 04, 2004 8:15 pm
Location: Eden, Utah

Post by Burrito »

Moved to databases.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

The best we can help you with is showing you a generic UPDATE.

http://dev.mysql.com/doc/refman/5.0/en/update.html
Post Reply