RE: [htdig] Help Paging Results


Subject: RE: [htdig] Help Paging Results
From: Brian Paulson (webmaster@CHIEFTAIN.COM)
Date: Mon Aug 07 2000 - 14:01:44 PDT


Never mind Found My own Mistake.

Sorry to bother you.

Brian

>-----Original Message-----
>From: Brian Paulson [mailto:webmaster@CHIEFTAIN.COM]
>Sent: Monday, August 07, 2000 2:42 PM
>To: htdig@htdig.org
>Subject: [htdig] Help Paging Results
>
>
>Hello,
>
> I am Using htdig to index our newspaper. While I have Htdig
>Installed and
>working ok using php for the forming of the results pages. I am having
>trouble paging the results I have it set in the Conf file to return 20
>results but for some reason it is returning only half of what ever I put in
>the Config file.
>
>example: http://www.chieftain.com/search
>
>Use the Archive search and search for Cement and you should get a couple of
>pages.
>I am also echoing out The value of i and rc for the while loop
>
> while($i<$rc) {
> //echo "<br>$result[$i]\n";
> //$i++;
> $title = $result[$i];
> $url = $result[$i+1];
> $percent = $result[$i+2];
> $excerpt = $result[$i+3];
> // Modify Domain name to match
>where we want it to go.
>
> $modurl =
>ereg_replace("http://www.chieftain.com","", $url);
>
> // Display Matching Results
> echo "<table border=0 width=100%
>cellpadding=0>\n<tr>\n<td width=100%
>class=\"publish\" colspan=2>\n";
> echo "<p><A HREF=\"http://www.chieftain.com/display.htm?url=" .
>$modurl . "\">" . $title . "</A><BR>\n";
> echo "</td>\n</tr>\n<tr>\n<td bgcolor=#EAEAFF
>width=30%>\n";
> echo "(" . $percent . "% match)<BR>\n";
> echo "</td>\n<td
>width=70%></td>\n</tr>\n<tr>\n<td width=100%
>colspan=2>\n";
> echo "<blockquote>" . $excerpt .
>"</blockquote><BR><BR></p>\n</td>\n</tr>\n</table>\n\n";
> $i=$i+8;
> }
>
>Any Help Would be appreciated.
>
>Thank you
>Brian Paulson
>Sr. Web Developer
>1-800-279-6397 X207
>bpaulson@chieftain.com
>*************************
>
>
>------------------------------------
>To unsubscribe from the htdig mailing list, send a message to
>htdig-unsubscribe@htdig.org
>You will receive a message to confirm this.
>
>

------------------------------------
To unsubscribe from the htdig mailing list, send a message to
htdig-unsubscribe@htdig.org
You will receive a message to confirm this.



This archive was generated by hypermail 2b28 : Mon Aug 07 2000 - 04:32:58 PDT