<?php
// Test script to remove all admission dates for testing the "no dates set" message
require_once 'config/database.php';

try {
    // Deactivate all records
    $stmt = $pdo->prepare("UPDATE admission_publish_dates SET is_active = 0");
    $stmt->execute();
    
    echo "All admission dates have been deactivated.<br>";
    echo "Now when you visit the admission application page, you should see the 'no dates set' message.<br>";
    
    // Verify
    $stmt = $pdo->query("SELECT COUNT(*) FROM admission_publish_dates WHERE is_active = 1");
    $count = $stmt->fetchColumn();
    
    echo "Active admission dates count: " . $count . "<br>";
} catch (Exception $e) {
    echo "Error: " . $e->getMessage() . "<br>";
}
?>