Powered by Blogger.

Monday, October 15, 2012

Membuat Koneksi database dengan PHP

Membuat koneksi database dengan PHP dan MySQL sangatlah mudah.
Ini source kodenya:

<?php
$host = "localhost";
$username = "vatkur";
$password = "";
$database = "vatkurdb";

$connect = mysql_connect($host,$username,$password)or die("Can not connected to server because ".mysql_error());
mysql_select_db($database, $connect)or die("Can not connected ro database because ".mysql_error());
?>
Gampang to??
Ojo nganti lali !!!
:D


Achmad Fatkur Rachman's Blog

Mungkin kamu tertarik, Baca juga yang ini!!


Loading...

0 comments:

Post a Comment

 

Achmad Fatkur Rachman's Fb Page

Followers

  PageRank Checker