Try the following:
$query="SELECT * FROM book where " . $searchtype ." like '%" . $searchterm . "%'";
Hope it will help you! Good Luck!
-- This message may have been cut off and the rest will only be shown to members. To become a member, click here --