Search does not work if there is a special character in results
hello,
As i said on the title, if i get a special character in result from the search it does not work
I get this error
If there is no special character in results it works perfect. What can i do to find the special character? this is the code i am using.
Any suggestions?
hello,
As i said on the title, if i get a special character in result from the search it does not work
I get this error
PHP:
Warning: mysql_query() [function.mysql-query]: Unable to save result set in /home/xxx/public_html/search.php on line 277
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/xxx/public_html/search.php on line 278
If there is no special character in results it works perfect. What can i do to find the special character? this is the code i am using.
PHP:
$query = "select * from files where title like \"%$trimmed%\"
order by added desc"; //
$numresults=mysql_query($query);
$numrows=mysql_num_rows($numresults);
Any suggestions?
Last edited:







