$sql = "select * from cd_list";
$keyword = @trim($_REQUEST["keyword"]);
if (!empty($keyword)){
$sql .=" where cd_name like '%$keyword%'
or cd_ename like '%$keyword%'
or cd_message like '%$keyword%'
or cd_address like '%$keyword%'";
}
$result = mysql_query($sql) or die("Error $sql");