Thanks, I stopped getting that error and the page now loads. Although no results are shown at all. All it says is:
Quote:
Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/west/public_html/search.php on line 121
Warning: implode() [function.implode]: Argument to implode must be an array. in /home/west/public_html/search.php on line 121
Warning: mysql_error(): supplied argument is not a valid MySQL-Link resource in /home/west/public_html/search.php on line 128
|
Line 121 is:
PHP Code:
$results = implode(mysql_fetch_assoc(mysql_query ("SELECT COUNT(*) " . $sql_from . $sql_where . $sql_order)));
and that is used to display 5 results at a time and line 128 is: the error that's shown if there was a problem with the query
PHP Code:
echo("<p>Doh! Error performing query: " . mysql_error($result) . "</p>");
The same thing happened whether I used single or double quotes although when you link on one of the 'order by' options the error disappears, and they work
Last edited by thehappyappy; 06-30-2008 at 04:31 PM..
|