Changing from mysqli to PDO, I've started getting errors in my prepared queries regarding the number of parameters given, like so - "PDOStatement::bindParam() expects at most 5 parameters, 7 given"
The above was the result of running this code;
$stmt = $pdo->prepare("INSERT INTO methadone_dosing (id, date_time, methadone_mls, dose_code, nurse, witness)
VALUES (?, ?, ?, ?, ?, ?)");
$stmt->bindParam("ssssss", $id, $date_time, $meth_dose, $dose_code, $nurse, $witness);
$stmt->execute();
Is there another way to bind parameters without using an array or such, or am I mixing syntaxes somewhere? Any help would be most appreciated.