> -----Original Message-----
> From: Horatio B. Bogbindero [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, June 20, 2000 2:55 PM
> To: Philippine Linux Users Group
> Subject: [plug] inserting record to a database in php?
>
>
>
> does anybody know how to insert a record into a php database. the
> documentation only specifies measures for retrieval of data.
>
> help!
>
<?
..... your HTML headers here
MYSQL_CONNECT($hostname, $squidusername, $squidpassword) or die("Unable to
connect to database");
@MYSQL_SELECT_DB("$squiddatabase") or DIE("Unable to select database");
$QueryString = "INSERT INTO $tempsquidtable (username, oldpasswd, newpasswd,
vnewpasswd) VALUES ('$logged_user', password('$oldpasswd'),
password('$newpasswd'),password('$vnewpasswd'))";
$SQL_Result = MYSQL_QUERY($QueryString);
... your own actions here
?>
Kinopya ko lang ito sa isa sa mga php scripts ko.
Ronneil Camara [EMAIL PROTECTED]
One Consulting Group Phone: (63)2 6354086
IT Consultant Mobile: (63)917 5326993
___ _ _ ( ) ___ ___ __ _ _ _ __ _ _ _ __ _
/ _ \| ' \| |/ -_) / _ / _` | \ / |/ _` | `_/ _` |
\___/|_||_|_|\___| \___\__,_|_|'|_|\__,_|_| \__,_|
-
Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph
To leave: send "unsubscribe" in the body to [EMAIL PROTECTED]