close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

I would like to add a target to my pagination link and broke with link with me attempts. Can you help?

Thread began 6/13/2022 8:30 am by jo271221 | Last modified 1/30/2023 2:19 pm by Ray Borduin | 110 views | 2 replies |

jo271221

I would like to add a target to my pagination link and broke with link with me attempts. Can you help?

<?php if ($WADAtbl_posts->PageNum < $WADAtbl_posts->TotalPages) { // Show if mysqli not last page ?>
<li><a href="<?php echo $WADAtbl_posts->getNextPageLink(); ?>';" class="current"><i class="far fa-angle-right"></i> Next</a></li>
<?php } // Show if mysqli not last page ?>

I tried <?php echo $WADAtbl_posts->getNextPageLink(); ?>';#mytarget"
and <?php echo $WADAtbl_posts->getNextPageLink(); ?>#mytarget';"

This works but I do not know how to pass the value in.
https://performancehorsehotline.com/details/mypage.php?id=506#mytarget

Actual link in PM

Sign in to reply to this post

Ray BorduinWebAssist

This should work:
<?php echo $WADAtbl_posts->getNextPageLink(); ?>#mytarget"

Sign in to reply to this post
Did this help? Tips are appreciated...

jo271221

I tried both of these and they don't work
<?php if ($postsPV->PageNum > 0) { // Show if mysqli not first page ?>
<li><a href="<?php echo $postsPV->getFirstPageLink(); ?>#results" class="current"><i class="far fa-angle-left"></i><i class="far fa-angle-left"></i> First</a></li>
<?php } // Show if mysqli not first page ?>
<?php if ($postsPV->PageNum > 0) { // Show if mysqli not first page ?>
<li><a href="<?php echo $postsPV->getPrevPageLink(); ?>;#results" class="current"><i class="far fa-angle-left"></i>Prev</a></li>

I get this
?pageNum_WADAtbl_posts=0&totalRows_WADAtbl_posts=2884&caption=a&businessname=&groupname=&Search=';';';;';';';';;';

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...