Eh o seguinte,
Estou tentando resgatar os dados do meu banco - postgresql - mas
soh me mostra o primeiro registro cadastrado. Poderiam me ajudar?? VEJAM
$sql = "Select eletiva,vgminima,vgmaxima,credito from medicina ORDER BY eletiva;";
$res = pg_exec ($condb, $sql);
if (!$res)
{
echo "Ocorreu um erro.\n";
exit();
}
while ($row=pg_fetch_row($res,$i))
{
for($j=0; $j < count ($row); $j++)
{
?>
<html>
<br/><br/>
<tr>
<th><?php echo $row[$j]; return 0; ?></th>
</tr>
</html>
<?php
}
}
?>