<?php
//localhost, username, password, database
//@ $db = new mysqli('localhost', 'root', '', 'bookstore');

//if (mysqli_connect_error()) 
//{
//  echo 'Error: Could not connect to database.  Please try again later.';
//    exit;
//}

//$login=mysql_connect("127.0.0.1","root","");
//mysql_selectDB("Karaoke",$login);

$db = mysql_connect('localhost', 'wauhaha_book', 'exia00') or die(mysql_error());
mysql_select_db("wauhaha_bookstore",$db) or die(mysql_error());

?>