I know this is going to be something simple, but it's driving me a little insane at the moment. I need to update my datetime column with my statement, however it's not working. Any ideas?
$stmt = $db->prepare("UPDATE clients SET client_last_date = NOW() WHERE client_id = ?"))
$stmt->bind_param("i", $_SESSION['client_id']);
$stmt->execute();
$stmt->close();
The error i'm getting is Fatal error: Call to undefined method PDOStatement::bind_param()
EDIT - Turns out there was conflicting PDO objects inside a login script im using, that was causing my error. All sorted now!