6 #Connect to the database |
6 #Connect to the database |
7 $connect = mysqli_connect(DBASE_HOST, DBASE_USER, DBASE_PASS, DBASE_NAME); |
7 $connect = mysqli_connect(DBASE_HOST, DBASE_USER, DBASE_PASS, DBASE_NAME); |
8 if (! $connect) { |
8 if (! $connect) { |
9 die('Connect Error (' . mysqli_connect_errno() . ') ' . mysqli_connect_error()); |
9 die('Connect Error (' . mysqli_connect_errno() . ') ' . mysqli_connect_error()); |
10 } |
10 } |
|
11 mysqli_set_charset($connect, "utf8" ); |
11 |
12 |
12 /* |
13 /* |
13 * If a new default will be set, clear the old default. |
14 * If a new default will be set, clear the old default. |
14 */ |
15 */ |
15 function clear_default() { |
16 function clear_default() { |