<?php
$user_name = "root";
$password = "";
$database = "mahasiswa";
$host_name = "localhost";
$connect_db = mysql_connect ($host_name, $user_name, $password);
$db = mysql_select_db ($database);
if ($db) {
echo "Databae ada";
} else {
echo "Database tidak ada";
}
?>
Tidak ada komentar:
Posting Komentar