1
mirror of https://github.com/jakejarvis/spoons.git synced 2025-09-15 04:35:34 -04:00

set database timezone to east coast beast coast

This commit is contained in:
2017-07-16 14:31:50 -04:00
parent d5f12cf9c6
commit 5e8c9fc105

View File

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