Reply to thread

Okay so config is pretty much this then


[CODE]

$hostname = "localhost";

$username = "username";

$password = "password";

[/CODE]


where class.engine would be for the

[CODE]

$conn = new PDO("mysql:host=$hostname;dbname=myDB", $username, $password);

  // set the PDO error mode to exception

  $conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);

  echo "Connected successfully";

} catch(PDOException $e) {

  echo "Connection failed: " . $e->getMessage();

[/CODE]

Correct?


Also should I change it from the code like $_CONFIG['mysql']['code']; to $code?


Top