iSearch PHP question #2

This is a discussion on iSearch PHP question #2 within the alt.comp.lang.php forums, part of the PHP Programming Forums category; Hello again! Here's my site that includes an iSearch search engine at the top: http://www.motorcityrock.com/index....


Go Back   Usenet Forums > PHP Programming Forums > alt.comp.lang.php

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 12-10-2003
John Patrick
 
Posts: n/a
Default iSearch PHP question #2

Hello again!

Here's my site that includes an iSearch search engine at the top:
http://www.motorcityrock.com/index.html

Type Craig Black in to the search box and hit enter. The search is executed
and the results display properly, however, if you try to navigate to the
second page of results using the page links at the bottom...you get a blank
page with this heading: Search results for 'craig AND AND AND black'

If you try the search within quotes "Craig Black," you get nothing.

If you type a single word: black you get multiple pages of
results...and they all work fine.

Any suggestions?

jp


Reply With Quote
  #2 (permalink)  
Old 12-10-2003
Janwillem Borleffs
 
Posts: n/a
Default Re: iSearch PHP question #2


"John Patrick" <jpatrickNOSPAM@twmi.rr.com> schreef in bericht
news:R_KBb.5$1b7.2@fe1.columbus.rr.com...
>
> Type Craig Black in to the search box and hit enter. The search is

executed
> and the results display properly, however, if you try to navigate to the
> second page of results using the page links at the bottom...you get a

blank
> page with this heading: Search results for 'craig AND AND AND black'
>
> If you try the search within quotes "Craig Black," you get nothing.
>
> If you type a single word: black you get multiple pages of
> results...and they all work fine.
>


Since magic quotes are enabled on your site, you should stripslash the
search phrase before you parse it.

Also, make sure that 'word word' and "word word" are treated as `word AND
word`.


JW



Reply With Quote
  #3 (permalink)  
Old 12-11-2003
John Patrick
 
Posts: n/a
Default Re: iSearch PHP question #2


> Since magic quotes are enabled on your site, you should stripslash the
> search phrase before you parse it.
>
> Also, make sure that 'word word' and "word word" are treated as `word AND
> word`.
>
>
> JW



I'm afraid I'm not sure how to make the necessary changes. iSearch includes
several files. Do modify them, or are you suggesting a change that can be
made using the Control Panel? How can I best stripslash the search phrase
before parsing?

Thanks!

jp (noob)


Reply With Quote
  #4 (permalink)  
Old 12-12-2003
Janwillem Borleffs
 
Posts: n/a
Default Re: iSearch PHP question #2


"John Patrick" <jpatrickNOSPAM@twmi.rr.com> schreef in bericht
news:z0QBb.2529$l%1.2043@fe2.columbus.rr.com...
>
> I'm afraid I'm not sure how to make the necessary changes. iSearch

includes
> several files. Do modify them, or are you suggesting a change that can be
> made using the Control Panel? How can I best stripslash the search phrase
> before parsing?
>


I'm not familiair with iSearch, but what I mean is that you format the
search phrase before it gets processed. The best place for this is the page
which actually performs the search. On top of this page, you apply
stripslashes on the search phrase. Something like

<?
$search = stripslashes($_POST['search']);

// $search is parsed from here
// ....
?>

But as I said before, I do not know the product, so I'm not sure if this
pointer is helpful.


JW



Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 08:53 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0