Reply to Re: Previous and Next ID ?

Your name:

Reply:


Posted by Otto on 07/23/05 17:21

Hello Hilarion

> This will work OK only if "nom" values are unique. If they are not, then you'll
> always get other "duplicate" of current record as previous and as next.
> In that case you should use something like:
>
Many thanks four your quick answer.

Yes you are right, they can have duplicate records. In fact I like to now the
next ID and previous ID than I can make a skip and skip -1 button at the bottom
of the windows.

Someting like:
+---------------------+
¦ Nom : xxxxx ¦
¦ Prénom : xxxxx ¦
¦ ... ¦
¦ ¦
¦ ¦
+---------------------+
< > NEW SAVE DEL <-- Buttons

Until yet I did it like that (button to display the next record):
<a href="adresse_edit.php?id=<?= $id+1 ?>">
<img border="0" src="images/co_avant.png" width="32" height="24"></a>

But this solution do not skip to the next record alphabetikally!..

[Back to original 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

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