<?php
error_reporting(E_ERROR | E_PARSE);
include '../conector.php';

echo "=== Verificar valores en planilla_consulta.periodo ===\n";
$sql = "SELECT DISTINCT periodo FROM planilla_consulta";
$res = mysql_query($sql);
echo "Resultados: " . mysql_num_rows($res) . "\n";
while($row = mysql_fetch_assoc($res)){
    echo "periodo = '" . $row['periodo'] . "'\n";
}
?>