How to serialize the database results, i.e., I have this query,
<?
$sqlstr="SELECT * from users WHERE country='USA' ORDER BY Sno ASC";
$result=mysql_query($sqlstr);
while($row=mysql_fetch_array($result)){
echo "$row[Name]";
}
?>
What i need is a number that'll say 1. John
2. James 3. Janet 4. Bill.
Please help