Hey here is my code - The number of rows are being displayed that are
currently in the database (3) but when i try to get the data out it
isn't being displayed, showing merely the just the rows with the
lines.... can you help me? thanks!
<?
require_once ('mysqyl_connec t.php');
$query="SELECT * FROM CLIENT_INFO";
$result=mysql_q uery($query);
$num=mysql_numr ows($result);
mysql_close();
echo "<b><center>Cli ent List</center></b><br><br>";
$i=0;
while ($i < $num) {
$first=mysql_re sult($result,$i ,"first_name ");
$last=mysql_res ult($result,$i, "last_name" );
$mobile=mysql_r esult($result,$ i,"email");
echo "<b>$last_n ame</b><br>E-mail: $email<br><hr>< br>";
$i++;
}
?>
currently in the database (3) but when i try to get the data out it
isn't being displayed, showing merely the just the rows with the
lines.... can you help me? thanks!
<?
require_once ('mysqyl_connec t.php');
$query="SELECT * FROM CLIENT_INFO";
$result=mysql_q uery($query);
$num=mysql_numr ows($result);
mysql_close();
echo "<b><center>Cli ent List</center></b><br><br>";
$i=0;
while ($i < $num) {
$first=mysql_re sult($result,$i ,"first_name ");
$last=mysql_res ult($result,$i, "last_name" );
$mobile=mysql_r esult($result,$ i,"email");
echo "<b>$last_n ame</b><br>E-mail: $email<br><hr>< br>";
$i++;
}
?>
Comment