$dblocation = "";
$dbname = "library";
$dbuser = "root";
$dbpasswd = "";
$db = mysql_connect($dblocation,$dbuser,$dbpasswd);
mysql_query ("set character_set_client='utf8'");
mysql_query ("set character_set_results='utf8'");
mysql_query ("set collation_connection='utf8_unicode_ci'");
mysql_select_db($dbname, $db);