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

echo "=== ESTUDIANTES ===\n";
$sql = "SELECT estudiante_id, nombre, curso_id FROM estudiante LIMIT 10";
$res = mysql_query($sql);
while($row = mysql_fetch_assoc($res)){
    echo "ID: " . $row['estudiante_id'] . ", Nombre: " . $row['nombre'] . ", Curso ID: " . $row['curso_id'] . "\n";
}

echo "\n=== CURSOS ===\n";
$sql2 = "SELECT curso_id, codigo, nombre FROM curso";
$res2 = mysql_query($sql2);
while($row2 = mysql_fetch_assoc($res2)){
    echo "ID: " . $row2['curso_id'] . ", Codigo: " . $row2['codigo'] . ", Nombre: " . $row2['nombre'] . "\n";
}

echo "\n=== PLANILLAS ===\n";
$sql3 = "SELECT id, anno, periodo FROM planilla";
$res3 = mysql_query($sql3);
while($row3 = mysql_fetch_assoc($res3)){
    echo "ID: " . $row3['id'] . ", Año: " . $row3['anno'] . ", Periodo: " . $row3['periodo'] . "\n";
}
?>