View Single Post
Old 07-22-2004, 04:34 PM   #2 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,544
sde is on a distinguished road
how many results would you like to buffer? do you want to go above and below the number?


the only way i can think of is 2 queries.
Code:
select * from table where field>=$number order by field asc limit 5;
select * from table where field<$number order by field desc limit 5;
eh?
__________________
Mike
sde is offline   Reply With Quote