prepare($sql); $stmt->bindParam(':id', $id, PDO::PARAM_INT); $stmt->execute(); if ($stmt->rowCount() > 0) { jsonSuccess(null, "Record updated successfully."); } else { jsonError("No records were updated"); } ?>