Advertisement
ujiajah1

create_db.php

May 13th, 2016
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.24 KB | None | 0 0
  1. <?php
  2. $host="localhost";
  3. $userdb = "root";
  4. $passdb = "";
  5. $koneksi=mysql_connect($host,$userdb,$passdb);
  6. if ($koneksi) {
  7. mysql_create_db("namadatabase",$koneksi);
  8. echo "database berhasil dibuat";
  9. or die ("database gagal dibuat"); }
  10. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement