Esempio n. 1
0
    require_once 'C:\\xampp\\htdocs/mythings/system/controller/config.php';
    //echo $_SERVER['SERVER_NAME'];
}
require_once DIR_DB . "/mysql_user_info.php";
require_once DIR_DB . "/mysql_reader.php";
require_once DIR_DB . "/mysql_connect.php";
require_once DIR_READER . "/tag.php";
require_once DIR_READER . "/antitheft.php";
while (1) {
    $db_name = "etm_pl1";
    $tb_name = "hetmr";
    $constraint = "type='PHONE'";
    $con = new Mysql(HOST, USER, PASSWORD);
    $query = "SELECT epc FROM {$tb_name} WHERE " . $constraint;
    $data = array();
    $a = mysql_select_db($db_name, $con->getcon());
    if ($a) {
        $result = mysql_query($query);
        while ($row = mysql_fetch_assoc($result)) {
            set_time_limit(0);
            if (!$row) {
                //return "empty_cell"; //search row error
            } else {
                //	$row1['counter']=$row['counter'];
                //$row['epc']=substr($tb_name,6,strlen($tb_name));
                array_push($data, $row['epc']);
            }
        }
        //print_r($data);
    }
    $data2 = array();