prepare($sql); $stmt->execute($params); if ($stmt->rowCount() > 0) { jsonSuccess(null, "Kazan data updated successfully"); } else { // If no rows were changed but execute was successful, it might be because the data is the same jsonSuccess(null, "Kazan data remains unchanged or updated"); } ?>