hi there,
to show some of the database data, i use the following script:
the problem is it when $total = 10 (for example), it can only echo out 9 rows, the first row is missing.PHP Code:$result = mysql_query("SELECT * FROM users where name='$name' and joined='$date'") or die(mysql_error());
$row = mysql_fetch_array( $result );
$total = mysql_num_rows($result);
while($row = mysql_fetch_array($result))
{
echo $row['name'];
echo $row['joined'];
echo "<br>"
}
any idea why?
thanks







Bookmarks