close ad
WARNING PC USERS: Do Not Install the DREAMWEAVER CC 2017 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

advance to next record

Thread began 9/28/2015 12:13 pm by mrobben375515 | Last modified 9/28/2015 2:15 pm by Ray Borduin | 202 views | 1 replies |

mrobben375515

advance to next record

I have a page that returns 1 record based on a clicked image from a previous page. We want to allow the user to move to the next record or a previous record in that table. I use mysqli to open the recordset. I tried to apply the mysqli record paging to next and previous record, but when I do, the page gives me a "Error in SQL syntax". The page is http://loyalneighbor.com/inductee.php?id=1

The statement I applied is below. Do I need to do a repeat region first?
<ul class="portfolio-pagination">
<li class="prev"><a href="<?php echo $inductee->getPrevPageLink(); ?>" class="button medium no-bg"><span class="arrow left">&raquo;</span> Previous</a></li>
<li class="next"><a href="<?php echo $inductee->getNextPageLink(); ?>" class="button medium no-bg">Next <span class="arrow">&raquo;</span></a></li>
</ul><!-- end .portfolio-pagination -->

Sign in to reply to this post

Ray BorduinWebAssist

This won't work on a details page and a recordset that only returns 1 record. How are you filtering the recordset? I think you may have to do two more recordsets in order to get the ID of the next and previous records and put in your own navigation that way. The navigation you are using is designed for a page with a repeat region that returns multiple records from the database but only displays a few at a time.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...