<?
include("config.inc.php");
conndb();
// Search By Name
$strSQL = "SELECT * FROM member ,groupdep WHERE 1 and member.groupID = groupdep.groupID ";
if($_POST["ddlSelect"] != "" and $_POST["txtKeyword"] != '')
{
$strSQL .= " AND (".$_POST["ddlSelect"]." LIKE '%".$_POST["txtKeyword"]."%' ) ";
}
$objQuery = mysql_query($strSQL) or die ("Error Query [".$strSQL."]");
?>