Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $host="localhost";
- $user="root";
- $name="login";
- $pass="";
- $conn=mysql_connect($host,$user,$pass);
- if ($conn) {
- $buka=mysql_select_db ($name);
- if(!$buka) {
- die ("Database tidak dapat dibuka");
- }
- }
- else {
- die ("Server MYSQL tidak terhubung");
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement