You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
mysql_query("SET NAMES utf8;", $db_link); //utf8 or big5
if (!$conn) die("Connection failed: " . mysqli_connect_error()."<br/>"); //not connected then die
// else echo "Connection Success!";
$sql = "CREATE DATABASE IF NOT EXISTS ".$db_name." DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;"; //utf8 utf8_unicode_ci or big5 big5_chinese_ci
if($conn -> query($sql) == false) echo "Failed to create database<br/>";