1
mirror of https://github.com/jakejarvis/spoons.git synced 2025-10-22 20:34:29 -04:00

change all database stuff to MySQLi

This commit is contained in:
2017-07-16 12:43:57 -04:00
parent c89c6821e0
commit 438a9db194
9 changed files with 139 additions and 133 deletions

View File

@@ -1,6 +1,17 @@
<?php
mysql_connect($db_host . ":" . $db_port, $db_user, $db_pass);
mysql_select_db($db_name);
//mysql_connect($db_host . ":" . $db_port, $db_user, $db_pass);
//mysql_select_db($db_name);
mysql_query('SET time_zone = "' . $timezone_number . '"');
?>
//mysql_query('SET time_zone = "' . $timezone_number . '"');
// Create connection
$conn = mysqli_connect($db_host, $db_user, $db_pass, $db_name);
// Check connection
if (!$conn) {
die("Connection failed: " . mysqli_connect_error());
}
?>