<?php
$host="localhost";
$user="root";
$pass="";
$database="latihan";
$konek=mysql_connect($host,$user,$pass);
$konek2=mysql_select_db($database);
if($konek){echo"berhasil konek";};
if($konek2){echo"berhasil konek2";};
?>
$host="localhost";
$user="root";
$pass="";
$database="latihan";
$konek=mysql_connect($host,$user,$pass);
$konek2=mysql_select_db($database);
if($konek){echo"berhasil konek";};
if($konek2){echo"berhasil konek2";};
?>
Tidak ada komentar:
Posting Komentar