$objConnect = mysql_connect("localhost","root","root") or die("Error Connect to Database");
$objDB = mysql_select_db("traffic");
$strSQL = "SELECT * FROM red WHERE Name LIKE '%".$strSearch."%' ";
$objQuery = mysql_query($strSQL) or die ("Error Query [".$strSQL."]");
$Num_Rows = mysql_num_rows($objQuery);
$objConnect = mysql_connect("localhost","root","root") or die("Error Connect to Database");
$objDB = mysql_select_db("traffic");
$strSQL = "SELECT * FROM red WHERE Name LIKE '%".$strSearch."%' UNION SELECT * FROM gray WHERE Name LIKE '%".$strSearch."%' UNOIN SELECT * FROM yel WHERE Name LIKE '%".$strSearch."%'";
$objQuery = mysql_query($strSQL) or die ("Error Query [".$strSQL."]");
$Num_Rows = mysql_num_rows($objQuery);