Código PHP:
Ver original<?php
$datos="select NomEntCom,TblEntCom.CveEntCom, TblPerCom.NivPerCom,FchEntCom, count(*) from TblOrgCom, TblPerCom, TblEntCom left join TblComInt on TblEntCom.CveEntCom=TblComInt.CveEntCom where TblComInt.CveEntPrf=3 and TblOrgCom.PlnEstCom='Bachillerato Universitario en la Modalidad a Distancia' and TblEntCom.CveEntCom=TblOrgCom.CveEntCom and TblEntCom.CveEntCom=TblPerCom.CveEntCom group by TblEntCom.CveEntCom";
$i=1;
$NombreMateria[i] = $registro ['NomEntCom'];
$ClaveMateria[i] = $registro ['CveEntCom'];
$NivelMateria[i] = $registro ['NivPerCom'];
$FechaMateria[i] = $registro ['FchEntCom'];
$ContRegistros[i] = $registro ['count(*)'];
$i++;
echo $NivelMateria[i];
echo $NombreMateria[i];
echo $ContRegistros[i];
}
?>