Friday, June 26, 2009

Insert Data

Aritu dah buat berkenan cara2 nak connect to database kan.. so skarang ni ada sambungan nya pulak.. mmmana nak insert data melalui php ke dalam database..


$insert = "INSERT INTO domain
(domain_name,
client,
expiry_date,
server)
VALUES
('" . 'nazrilhaniff.blogspot.com . "',
'" . 'nazril' . "',
'" . '1 year' . "',
'" . 'blogspot' . "')";

$results = mysql_query($insert) or die(mysql_error());

so camner ok ker.. boleh la jugak kan..

hehe..

No comments: