I am trying to find a way to insert a value into one of two columns depending on which one is NULL.
$accept_sth = $dbh->prepare("UPDATE user_properties
IF(followup_offer <> NULL, fstatus=?)
ELSE (istatus=?)
WHERE id=?");
$accept_sth->execute($_POST['option'], $_POST['id']);
I am doing it wrong.
followup_offerin the php.followup_offerin one of your existing / previous queries. You have status and id, so getfollowup_offerat that same time.