if($_GET["brand"]){
$q="select * from table_car where subject_condo like '%".$_GET['brand']."%'";
if($_GET["keyword"] != "")
{
$q.= " AND (brand = '".$_GET["keyword"]."' OR version = '".$_GET["keyword"]."')";
}
$q.=" ORDER BY edit_date DESC";
$qr=mysql_query($q);
......