Help keep our community respectful and collaborative by following these rules:
Violating these rules may result in warnings or bans.
Create a file named connect.php and paste this code inside
<?php
// Include the WoWonder config file to use its database settings
include('config.php');
// Create a connection using the credentials from config.php
$sqlConnect = new mysqli($sql_db_host, $sql_db_user, $sql_db_pass, $sql_db_name);
// Check connection
if ($sqlConnect->connect_error) {
die("Connection failed: " . $sqlConnect->connect_error);
}
// Set character encoding to UTF-8 for consistency with WoWonder
$sqlConnect->set_charset("utf8");
?>
Place it in your wowonder root