Dear Sunil,
First of all make an array of you are reading from file.
Like that:
?
$sel = "Selcect fild1,fild2 from myfile";
$res= mysql_query($sel);
while ($row=mysql_fetch_row($res))
{
$my_array[$row[0]] = $row[1];
}
// tem:
asort($my_array);
for(reset($my_array); $ind=key($my_array);
"select data_name,data_number from myTable order data_number DESC"
The "DESC" is descending.
HTH
Terry
On Friday, March 23, 2001, at 03:02 PM, Sunil Jagarlamudi wrote:
I am trying to read a file which has two columns with names and numbers and
I am trying to sort them numerically, with