Insert into mysql database with PHP

Insert data into mysql from php.

<?php
include 'dbloc.php';

$query = "INSERT INTO address (name, phone) VALUES ('Purell', '999')";

mysql_query($query)  or die('<b>Error: </b>' . mysql_error());

?>

No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URL

Leave a comment