Script Koneksi

Standar

<?php
$server = “Localhost”;
$username = “root”;
$password = “rpl2013”;
$database = “db_formulir”;

$konek = mysql_connect($server, $username, $password)
or die (” Koneksi ke server mysql gagal”.mysql_error());
$bukadb=mysql_select_db($database)
or die (“gagal membuka database $database”.mysql_error());
?>

Keterangan : untuk password dan database sesuaikan dengan project yang dibuat

 

-good luck-

Tinggalkan Balasan

Please log in using one of these methods to post your comment:

Logo WordPress.com

You are commenting using your WordPress.com account. Logout / Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout / Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout / Ubah )

Foto Google+

You are commenting using your Google+ account. Logout / Ubah )

Connecting to %s