I am trying to make a news system, and I am getting an error on line 4 for the connect.php, which is supposed to connect to the database. Any ideas what the error is?
<?php
try {
$pdo = new PDO('mysql:host=localhost;dbname='finessec_cms', 'finessec_admin', 'admin');
} catch (PDOException $e) {
exit('Database error.');
}
?>