www/includes/db_inventory_water.php

changeset 77
a9f8de2d7b2b
parent 47
94cd5ac04b6a
child 99
f433193f7bb6
equal deleted inserted replaced
76:804d45bdaa86 77:a9f8de2d7b2b
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() {

mercurial