say i have it
$result = mysql_query('SELECT views FROM post ORDER BY views ASC');
and I want to use the value at index 30, I assumed that I would use
mysql_data_seek($result, 30);
$useableResult = mysql_fetch_row($result);
echo $useableResult . '<br/>';
But this returns the whole table
How am I wrong?
Edit: Woops, I actually have
mysql_data_seek($result, 30);
while($row = mysql_fetch_row($result)){
echo $row['views'] . '<br/>';
}
source
share