For some reason I can't get UPDATE to work, after hours of googling I can't seem to find a working code.
$stmt = $con->prepare("UPDATE user_settings SET accept_emails = ? WHERE user= '$user'");
$stmt->bind_param('s', '0');
$stmt->execute();
$stmt->close();
Trying to update via Ajax, keeps returning 500 Server Error. Should I just use the old MySQL way?