Koneksi dari PHP ke MySQL

 on Wednesday, December 26, 2012  


koneksi.php

<?php

mysql_connect("localhost", "admin", "admin999") or die(mysql_error());
echo "Connected to MySQL< br />";
mysql_select_db("databaseku") or die(mysql_error());
echo "Connected to Database";
?>

dimana :
localhost --> nama host
admin --> user pada mysql
admin999 --> password pada mysql
databaseku --> nama database
Koneksi dari PHP ke MySQL 4.5 5 Agustinus Darto Iwan Setiawan Wednesday, December 26, 2012 koneksi.php <?php mysql_connect("localhost", "admin", "admin999") or die(mysql_error()); echo "Con...


No comments:

Post a Comment

Silakan berkomentar ....