why my code not showing the first record?
Posted: Thu Aug 22, 2002 12:07 pm
please, look my code... it´s works... but not showing the first record, is it all right?
Code: Select all
$existe = mysql_query("SELECT * FROM amigos", $conn);
$rows = mysql_fetch_array($existe, MYSQL_NUM);
if($rows){
print("<center>
<table width='75%' border='1'>");
while (list($nom, $sen, $nic) = mysql_fetch_array($existe, MYSQL_NUM)) {
print("<tr>
<td width='50%'>
$nom
</td>
<td width='25%'>
$sen
</td>
<td width='25%'>
$nic
</td>
</tr>");
}
print("</table>
</center>");
}
else{
echo "Não há registros!";
exit;
}