include("../conexion.php");
$idd =$_POST[idd];
$idg =$_POST[idg];
$idc =$_POST[idc];
$idm =$_POST[idm];
$sig =$_POST[sig];
$ges =$_POST[ges];
$per =$_POST[per];
$ico =$_POST[ico];
$tit =$_POST[tit];
$det =$_POST[det];
$nomm =$_POST[nomm];
//Lista la carrera
$carrera=pg_exec("select * from alm_programas where id_programa='$idc'");
$y=pg_numrows($carrera);
if($y==0)
{echo "no existe la carrera";exit;}
for($x=0;$x<$y;$x++)
{
$nca=pg_result($carrera,$x,1);
}
echo "";
echo "";
echo "";
echo "Carrera:";
echo " | ";
echo "";
echo "$nca";
echo " | ";
echo " ";
echo "";
echo "";
echo "Materia:";
echo " | ";
echo "";
echo "$idg - $sig - $nomm";
echo " | ";
echo " ";
echo " ";
echo "";
$planestudio=pg_exec("select * from pland where id_plan='8'");
$f=pg_numrows($planestudio);
if($f==0)
{echo "Existe un error ...";exit;}
for($c=0;$c<$f;$c++)
{
$idp=pg_result($planestudio,$c,0);
$num=pg_result($planestudio ,$c,1);
$nop=pg_result($planestudio ,$c,2);
}
echo "$num $nop ";
// MENU
?>
|