Location: PHPKode > projects > Kebec - Virtual University > sis/teste.php
<?
exit;
require("lib/forms.php");
require("lib/libs.php");
require("lib/pgsql.php");
?>
<html>
<head> 
<title><?=pa_lang("Math's System");?></title>
</head>
<body bgcolor="white">
<table>
<?
$teste=pg_exec("select to_char(alu_matr,'0999999'),alu_nome from alunos");

for($i=0;$i<pg_numrows($teste);$i++)
{
 echo '<tr>';
 for($c=0;$c<pg_numfields($teste);$c++)
   {

 echo '<td>';
   echo pg_result($teste,$i,$c);
 echo '</td>';

     }
 echo '</tr>';

};

?>
</table>
</body>
</html>
Return current item: Kebec - Virtual University