Hiya!
I'm tryin' to search through 2 tables, but doesn't work at all.. plz, check my code n' lemme know how to fix the error plzzz..
thnx!
$query = "(SELECT * FROM news WHERE (news LIKE '".substr($entry, 0, 3)."%') OR (title LIKE '".substr($entry, 0, 3)."%') ORDER by id DESC ) AND
(SELECT * FROM old_news WHERE (news LIKE '".substr($entry, 0, 3)."%') OR (title LIKE '".substr($entry, 0, 3)."%') ORDER by id DESC )";
$result = mysql_query($query);
$results=mysql_numrows($result);
Warning: mysql_numrows(): supplied argument is not a valid MySQL result resource in /foo/newsearch.php on line 24
matches found for keyword ""
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /foo/newsearch.php on line 44