Koneksi DataBase n Tabel MySql(phpmyadmin)

Akhirnya aku nulis ini juga,,,,,

sbnarnya kmaren sok inget…. karena lama g’ pake lupa juga ama script ini….”
he…. he….

waktu mau ngerjain tiba2 lupa, n harus browsing2 lg…!!!

ini script untuk koneksi ke phpmyadmin(mysql):

(contoh konejksi ke localhost)

$db_hostname=”localhost”;

$db_username=”root”;

$db_password=””;

$db_name=”buku”;

$conn=mysql_connect(“localhost”, “root”, “”) or die (‘Koneksi database gagal’);

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s