prepare($sql); // Bind the phone number parameter $stmt->bindParam(":phone_number", $phone_number); // Execute the query $stmt->execute(); // Get the number of affected rows $affectedRows = $stmt->rowCount(); // Check if the update was successful if ($affectedRows > 0) { // Return a success response printSuccess($data = ["message" => "Phone number verified successfully"]); } else { // Return a failure response printFailure($message = "No phone number found or verification failed"); } ?>