Membuat Database dengan Script

Posted on Updated on


<?php

//membuat databse
//simpan dengan nama buat_database.php
&link=mysql_connect(‘localhost’,’root’,”);
if(!$link)
{
die(‘koneksi gagal:’.mysql_error());
}
//mazadie  adalah nama database
$sql=’create database mazadie’;
if(mysql_query(sql,&link))
}
echo”Good…database maz adie berhasil dibuat\n”;
}
else
{
echo’Database Gagal Bro : ‘ .mysql_error() . “\n”;
}
echo”
; echo”; ?>

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