Gossamer Forum
Home : General : Perl Programming :

Split Results

Quote Reply
Split Results
Hi Folks,

I went to town the other day (so to speak) and wrote myself a brand-spanking new Search Script. The problem I face now is that with a very generic search like "a" it brings back too many results. Well, not too many, but too many to list on one page. Does anyone know of a simple way to split and array of results into arrays of 10 results each and then get links like "see next 10 results" on the search results page? Any ideas or hints?

PS: Is there anyone way to make this box a little wider so that when you create or a reply to a message I can see more of the message. This box is a tad too small.

Last edited by:

Wil: Jun 19, 2002, 4:39 PM
Quote Reply
Re: Split Results In reply to
My best suggestion would be to look at the code in &query in DBMan.

It looks at a variable called nh to see what page number you want to display and only shows those records.

A simpler script may be something like Xavatoria search engine ( http://www.xav.com/ ) which has a next n link at the bottom.

Hope that helps,

Alex
Quote Reply
Re: Split Results In reply to
Hi Alex,

Thanks for the suggestions.

BTW: Excellent work with the File Manager. I reckon you should target major ISPs with that program.

This box still needs to be bigger when I'm typing, though Smile

Last edited by:

Wil: Jun 19, 2002, 4:39 PM