Quote:
Originally Posted by derjoiner
Got it working on serv00.com
Because the other side is only for PL and I'm in DE
I also wrote you a PM about my other problem if that's okay
|
Can you tell me how? i am trying to make it work but it just says error 404 on the site. i uploaded the files on pma.serv00.com on mysql4.serv00.com
I changed $clientWeb = "localhost"; to $clientWeb = "janys.serv00.com";
and i am stuck on $db = new PDO('mysql:host=localhost;dbname=m3895_sfgame;char set=utf8', 'root', '');
i tried changing it to
// Database connection parameters
$host = 'mysql4.serv00.com'; // Host of the remote MySQL server
$dbname = 'm3895_sfgame'; // Name of the database
$username = 'm3895'; // Database username
$password = 'password'; // Database password
$charset = 'utf8';
// PDO connection setup
try {
$db = new PDO("mysql:host=$host;dbname=$dbname;charset=$char set", $username, $password);
$db->setAttribute(PDO::ATTR_ORACLE_NULLS, PDO::NULL_TO_STRING);
$db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
$db->exec("SET sql_mode=''");
} catch (PDOException $e) {
die("Database connection failed: " . $e->getMessage());
i dont know what to do at this point
i am no expert so i seek help

thanks for reply