Monday, 4 July 2011

cara koneksi php dengan mysql

<?php
$a = mysql_connect('localhost','root','');
If(!$a)
{
Die("Koneksi Gagal".mysql_error());
}else
{
echo "koneksi Sukses";
}
?>

No comments:

Post a Comment