You are here: Re: SELECT * help needed. « PHP Programming Language « IT news, forums, messages
Re: SELECT * help needed.

Posted by Oli Filth on 10/19/05 17:31

Gerard wrote:
> Providing that u know what xx is there two other needed variables are
> the xx-5 and xx+5
>
> so then
>
> $start = $xx-5;
> $stop = $xx+5;
>
> SELECT * FROM Articles WHERE id >= $start AND id <= $stop;
>
> I think this is what you're looking for.
>

This assumes, of course, that there are no gaps in the sequence of
IDs...

--
Oli

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация