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