It's just like a SELECT, only you send an UPDATE query.

$query = "select * from people";
$people = mysql_query($query) or die(mysql_error());
.
.
.
$query = "update people set name = 'Fred' where lastname = 'Flintstone'";
mysql_query($query) or die(mysql_error());

You can send *ANY* query to the database, not just SELECT.
UPDATE, INPUT, DROP, ALTER TABLE, whatever you can dream up that your
database will allow you to do.

--
Visit the Zend Store at http://www.zend.com/store/
Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm
----- Original Message -----
From: Kurth Bemis <[EMAIL PROTECTED]>
Newsgroups: php.general
Sent: Friday, January 26, 2001 10:58 AM
Subject: [PHP] update db


> whats the php function that will let me update a db field?  I've been
> looking at the manual but there seems to be no mention of it.
>
> ~kurth
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to