$connection = mysql_connect($host,$dbuser,$dbpass) or die ("cannot connect to MySQL !!!");
mysql_select_db($dbname) or die ("cannot connect to database !!!");
// Search By Name or Email
if($strSearch= $_POST['txtKeyword'])
{
$strSQL = " SELECT * FROM nt_act WHERE (date_in LIKE '%".$strSearch."%') ";
$objQuery = mysql_query($strSQL);
$Num = mysql_num_rows($objQuery);
$strSQL .=" order by Id DESC ";
$objQuery = mysql_query($strSQL);