close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Paging Through Repeating Regions

Thread began 9/29/2010 6:45 pm by htp372188 | Last modified 10/01/2010 12:19 pm by Jason Byrnes | 1224 views | 10 replies |

htp372188

Paging Through Repeating Regions

I am experiencing a problem when paging thru the repeating regions on my results page.
I can do a search & get the proper results on the first page. If I go to the subsequent pages,
I see totally invalid results. If I modify the code to show me ALL the rows rather than the 1st 10, then everything works as it should.

The DASW generated code for the results page has been modified slightly to give a bit of flexibility on the search string but that is probably the bulk of the changes.

I have attached a zip'd version of the results page.

Any help would be greatly appreciated.

Attached Files
member_results.zip
Sign in to reply to this post

Jason ByrnesWebAssist

data assist stores the previous search in a session variable and uses that when you are pageing.

it sounds like the session is not being set.

Add the following in the body to see if the session is being or not:
<?php echo("Search session: ".$_SESSION["WADbSearch1_Results1"]); ?>

Sign in to reply to this post

htp372188

No Joy

Jason,
Your hunch was correct. I inserted the code & nothing was echoed. Solutions?

Sign in to reply to this post

Jason ByrnesWebAssist

one of two things is causing the issue:

1) The code modifications you made are causing the session not to be set.

2) The server is not configured to maintain session state properly.


to rule out the server, download the sessionTest.php file from the following thread:
showpost.php?p=23826&postcount=2

if this fails, you will need to contact the host to have session management fixed, most likely it is a problem with a bad session.save_path in the php.ini

Sign in to reply to this post

htp372188

Sessions are OK

Jason,
The test worked OK for me so apparently it's something I inadvertently messed up though I can't figure out exactly what I did wrong. The changes were pretty simple.

The remedy is running the Search Wizard 9 times to create 9 different pages & then save the generate code into 9 separate "include" files. Test the $search_type value at the start & include the appropriate code. A bit tedious to set up but apparently safer by far.

Sign in to reply to this post

Jason ByrnesWebAssist

Yeah, I can't see what is wrong with your code, but my guess is that the if statement's you added where causing the if statement for setting the session to be passed over.

to trouble shoot you can add an echo with an incrementing integer into each of the if statements to see which one is firing last. this may help pinpoint where the logic is going astray.

Sign in to reply to this post

htp372188

First Steps

Jason,
What I may do is create the results page (1 - 9 series) for the search that is giving me problems. I'll try that one 1st simply to verify that it was something I did along the way. If that works correctly - and it should - I'll then try your suggestion w/ the incremental echos.

Sign in to reply to this post

htp372188

Problem Solved

Jason,
I did some testing & none of my modifications were causing the problem. It turns out that I had overlooked saving the SearchType as a session variable and was instead relying on $_GET values. The 1st time thru, that was OK. The 2nd time, the $_GET value for SearchType was gone and the code defaulted to a basic search. I saved SearchType as a session variable on the 1st pass & retrieved it from there afterwards if $_GET came up empty.

Sign in to reply to this post

Jason ByrnesWebAssist

ok, glad to hear it is working.

Sign in to reply to this post

htp372188

Thanks for Your Help

It was much appreciated.

Sign in to reply to this post
loading

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