Dynadot โ€” .com Transfer

Search does not work if there are too many results

Spaceship Spaceship
Watch

baris22

Established Member
Impact
1
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

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:
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
0
•••
Dynadot โ€” .com TransferDynadot โ€” .com Transfer
Appraise.net
Domain Recover
NameMaxi - Your Domain Has Buyers
  • The sidebar remains visible by scrolling at a speed relative to the pageโ€™s height.
Back