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....
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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 |
|
|||
|
"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 |
|
|||
|
> 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) |
|
|||
|
"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 |
![]() |
| Thread Tools | |
| Display Modes | |
|
|