'PDOException' with message 'could not find driver'
This is the block of code that generates the error message.
- Code: Select all
$connectParm = 'mssql:host=localhost;dbname=ervitals;charset=utf8,ervitals,Ejoe2tedR@';
$connect = new PDO($connectParm); // The failure occurred on this line
$SQL = "SELECT obituaryid,datafileid FROM obituaries";
$SQL .= " WHERE year=?";
$stmt = $connect -> prepare($SQL);
$year = $_POST['txtYear'];
$stmt -> bindParam(1,$year);
$stmt -> execute();
What do I need to do to eliminate this problem?