Fix tableprefix and cart mysql
This commit is contained in:
parent
723dd58e71
commit
ba6b8d9e6b
19 changed files with 161 additions and 39 deletions
|
|
@ -12,7 +12,7 @@ ini_set('display_startup_errors', 1);
|
|||
error_reporting(E_ALL);
|
||||
|
||||
// Include database configuration
|
||||
require_once(__DIR__ . '/includes/config.inc.php');
|
||||
require_once(__DIR__ . '/bootstrap.php');
|
||||
|
||||
// Create database connection
|
||||
$db = mysqli_connect($db_host, $db_user, $db_pass, $db_name);
|
||||
|
|
@ -38,7 +38,7 @@ $services = $db->query($qry_services);
|
|||
|
||||
if (!$services) {
|
||||
echo "<meta http-equiv='refresh' content='1'>";
|
||||
mysqli_close($db);
|
||||
billing_maybe_close_db($db);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
@ -123,7 +123,7 @@ include(__DIR__ . '/includes/menu.php');
|
|||
|
||||
<?php
|
||||
// Close database connection
|
||||
mysqli_close($db);
|
||||
billing_maybe_close_db($db);
|
||||
?>
|
||||
|
||||
<?php include(__DIR__ . '/includes/footer.php'); ?>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue