bootneck Posted July 17, 2008 Share Posted July 17, 2008 Hi, I'm new here and to php/MySQL. Have searched fairly extensively for a solution for this but so far haven't found one. I'm using MySQL 5.0.61 - PHP 5.0 on XAMPP with global_variables disabled. Searching on MYSQl Fulltext boolean.Script has pagination. Have an HTML form with lines:- <form action="lookup.php" method="POST"> <INPUT TYPE="text" NAME="kwords" VALUE="" VALUE="" SIZE="25" MAX LENGTH="150"> Lookup.php has lines:- if(! isset($kwords)) { $phrase = $_REQUEST['kwords']; (doesn't work with $_POST['kwords']) } and in pagnation lines such as:- echo " <a href='{$_SERVER['PHP_SELF']}?kwords=$kwords&pageno=1'>FIRST</a> "; } The script runs OK with the exception that on searches such as 'apples +oranges' the '+' is stripped put of on page refreshes. I've tried numerous variations on the above but all seem to end up with the '+' being stripped from the called variable (kwords). Any help, such as a pointer to the right page in the manual, would be most appreciated. . Link to comment https://forums.phpfreaks.com/topic/115296-stripped-prefix/ Share on other sites More sharing options...
dubc07 Posted July 17, 2008 Share Posted July 17, 2008 Are you trying to spider the database or a web page for key words ? Link to comment https://forums.phpfreaks.com/topic/115296-stripped-prefix/#findComment-592760 Share on other sites More sharing options...
bootneck Posted July 17, 2008 Author Share Posted July 17, 2008 No, It's a db table holding a fulltext field against which there's a boolean search. As said it works ok with quoted string and truncated searches, but on boolean selections (+ -)I it drops the prefix on page refreshes. Link to comment https://forums.phpfreaks.com/topic/115296-stripped-prefix/#findComment-592821 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.