Forums

This topic is locked

Moving to next record from dataabase.

Posted 29 Jan 2005 22:19:24
1
has voted
29 Jan 2005 22:19:24 Simon Wantling posted:
Hi,
I have a page which displays moth information. I've had a request to have the option having a next/previous species link to enable a visitor to reload the page with a new moth write-up displayed. Does anybody have any ideas how I might achive this. I pass this URL from a database search page to the information display page. The URL is 'displayspeciesinfoimproved.php?speciesID=<?php echo $row_speciesdata['ID']; ?>'

Hope you can help
Many Thanks
Simon

Replies

Replied 30 Jan 2005 15:13:35
30 Jan 2005 15:13:35 Simon Martin replied:
<b>Ignore me</b> PHP doesn't have a move to specific recordset behaviour. Sorry

If you don't filter your recordset on ID you'll get all records. Great but you want your users to go to the specific record they selected right?
You can do that by using the 'Move To Specific Record' behaviour, now you just need to add the recordset paging to your page and now your users can select their record but also move through the entire recordset. Cool huh? (also you don't need to hand code either!)

Live the life you love
Love the life you live

Simon

Edited by - ganseki on 30 Jan 2005 15:16:35
Replied 30 Jan 2005 21:00:56
30 Jan 2005 21:00:56 Chris Charlton replied:
Since you are using Ultradev (4?), I assume you are using PhaKT for PHP?!?

Reply to this topic