I've install an mp3 script at my site but my site shown a mysql error so how to resolve it,,, please see the below link & help me... http://www.room.pk/mp3/search/mp3/1/ready.html
This is because your MySQL query has problem. It was not successfully executed and returned invalid resource.
dear, no i've try at my another domain but have same prob.... http://hungamapk.com/search/mp3/1/mast+mast.html Code (markup):
Change this line for debugging if(mysql_num_rows(mysql_query($query))==0){ Code (markup): to $rs = mysql_query($query) or die("Error in query: ".mysql_error()); if(mysql_num_rows($rs)==0){ Code (markup): Post here what your got in the page now
It seems that your script is providing limit in -ve numbers. To confirm this make a little more modification and replace the line $rs = mysql_query($query) or die("Error in query: ".mysql_error()); with $rs = mysql_query($query) or die("Query: $query <br> Error: ".mysql_error());
This query is wrong SELECT * FROM downloads WHERE title || artist LIKE '%%' ORDER BY id DESC LIMIT [B]-10[/B], 0 Code (markup): LIMIT should be +ve. It can't be -ve. This line is the problem $start = RESULTS_LIMIT * ($page-1); Code (markup):