prepare($sql); $stmt->bindParam(':id', $id, PDO::PARAM_INT); $stmt->execute(); // التحقق من نجاح الحذف if ($stmt->rowCount() > 0) { jsonSuccess(null, "Car registration deleted successfully"); } else { jsonError("Failed to delete car registration"); } ?>