MySQL Forums
Forum List  »  PHP

Re: Creating a search
Posted by: Martyn Coupland
Date: June 11, 2005 12:29PM

Simple just use this (normal search)...

SELECT * FROM `db1.table1`, `db2.table2` WHERE `field1` LIKE `%query%`

Then implement into mysql_query and loop through using the while loop for multiple returns.

For reference I suggest looking at the String Comparision section in the Documenation...

http://dev.mysql.com/doc/mysql/en/string-comparison-functions.html

Options: ReplyQuote


Subject
Written By
Posted
June 10, 2005 01:38PM
Re: Creating a search
June 11, 2005 12:29PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.