Thanks for your reply..
But, how if I got another text field for user to search by keyword???
In this keyword, user can key in any word they like.
This is the way i do:
Quote:
|
SELECT * FROM `table` WHERE book_id='%keyword%' OR book_name='%keyword%' OR book_type='%keyword%' AND book_title= '%$book_title%' AND serial_number='%$book_serial_number%' AND book_type="%book_type%" AND... so on
|
But, the search result i get by using the query above doesnt return exactly or aproached. The result seem like ignore all "AND" in my query.Means, no matter I put book_title, serial_number ..or not, it doesnt filter the book i search..
Any idea???