I took this straight from php manual example -- it was almost identical to what I needed but I am still getting this error.
Can someone tell me what I am missing?
$stmt = $link->prepare("SELECT obitBody, Photo FROM tnObit WHERE obitID = ?");
if ($stmt->execute(array($_POST['obitID']))) {
while ($row = $stmt->fetch()) {
print_r($row);
}
}
mysqli_stmt::execute() expects exactly 0 parameters, 1 given in