query("DESCRIBE appointments"); $columns = $stmt->fetchAll(PDO::FETCH_COLUMN); print_r($columns);