Hello I am using the search function on my (PHPLD v3.2) directory.. but it's giving "no results" for each and every keyword. I made no changes, it was working before. Any help appreciated. Thanks.
Your host must have upgraded PHP / mySQL. Here's how I fixed the search in my directory (running 3.2 as well): In the main directory, open up search.php. Then find the following code (near the bottom): $pattern = array ( '/(AND[\s])+/', '/(OR[\s])+/', '/\s+/', '/`+/', '`^[^\w\d]`', '`[^`\w\d]$`' ); Code (markup): Now replace it with: $pattern = array ( '#(AND[\s])+#i', '#(OR[\s])+#i', '#[\s]+#', '#[`]+#', '#^[^\w\d]#i', '#[^`\w\d]$#i' ); Code (markup): That should correct your problem.
Just replace the whole line of code. There are some other minor changes in there as well. Backup search.php just in case. Your new host is probably running the newer version of PHP. If memory serves me correct, PHP version 5.2.5 is what caused the search function to fail.