spacemonkey Posted May 13, 2008 Posted May 13, 2008 I'm hoping someone might be able to help with a problem I'm having navigating the pages of a site and retaining the found records. For the purposes of sample code I've provided extracts from the findall page and the target details page which I have got working to a degree in that when the user clicks on the link to the details in the findall list only the record clicked on is retained as found. I will also need to achieve the same when a user completes an actual search as well. Thanks findall: <?php session_start(); require_once('include/inc.php'); $request = $senseDB->newFindAllCommand('List'); $request->setRange(GET('skip'), 15); $result = $request->execute(); $records = $result->getRecords(); $fetch = $result->getFetchCount(); $found = $result->getFoundSetCount(); $total = $result->getTableRecordCount(); $rows = ""; foreach ($records as $record) { $rows .= ' $rows .= ''.$record->getField('ID').''; $rows .= 'getRecordId('GetTheRecordID') . '">getField('Images::my_Picture')).'" style="width: 60px; height: 60px" />'; ...... details: <?php session_start(); require_once('include/inc.php'); $request = $fmDB->newFindCommand('Details'); $request->addFindCriterion('GetTheRecordID', '==' . GET('recid') ); $request->setRange(GET('skip'), 1); $result = $request->execute(); $records = $result->getRecords(); $record = $records[0]; $fetch = $result->getFetchCount(); $found = $result->getFoundSetCount(); $total = $result->getTableRecordCount(); .......
Recommended Posts
This topic is 6298 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now