I'm attempting to update my calendar's title based on the new user's input.
The variables are as follows:
$titleNew = 'New Title'
$titleOld = 'Old Title'
The old title exists inside the database and should update accordingly, but with this code I'm getting an error message that says my prepared statement does not exist.
$result = pg_prepare($conn, "update", "UPDATE calendar SET title = $1 WHERE title LIKE $2");
$result = pg_execute($conn, "update", array($titleNew, $titleOld));