Quote:
Originally Posted by pursuiitcz
help me with this line correct:
$db = new PDO('mysql:host=localhost' . $mysql["host"] . ';dbname=soccerstar' . $mysql["db"] . ';charset=utf8', $mysql["root"], $mysql[""]);
|
in req you leave as it was:
$db = new PDO('mysql:host=' . $mysql["host"] . ';dbname=' . $mysql["db"] . ';charset=utf8', $mysql["user"], $mysql["pass"]);
But on settings.php change:
$mysql = [
"host" => "DB_HOST",
"user" => "USER_DB",
"pass" => "DB_PASSWORD",
"db" => "DB_NAME"
];