I am trying to write a script that will get TOP ten values from a Table of a certain column.
Here is my code..
<?php
include("../inc/db.php")
$data = mysql_query("SELECT * FROM table
ORDER by rank DESC
LIMIT 10");
while($row = mysql_fetch_array($data))
{
echo $row['id'] ;
echo "-----";
}
?>
Here using this while loop i am fetching the data from the Table.This will print the ID of the persons from the table "table" of 10 ten rank.
But what i have to do if i wanna access individual data.For example if i wanna print the 6th data first,then 1st then 4th blah blah......
Thanks ...