Jump to content

Nth result row of a query


karthikeyan_coder

Recommended Posts

i have an ordered list like..

2,

3,

1,

6,

4,

&

5

 

i have a query like $sql = "SELECT * FROM `table` WHERE `available`='Y'";

$query = mysql_query($sql);

let us say this query returns 12 result rows.

i need to get above result rows only in that order.

 

is it possible?

 

 

Link to comment
https://forums.phpfreaks.com/topic/36678-nth-result-row-of-a-query/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.