//判断是否为手机号// if(preg_match("#^13[\d]{9}$|^14[5,7]{1}\d{8}$|^15[^4]{1}\d{8}$|^17[0,6,7,8]{1}\d{8}$|^18[\d]{9}$#",$filter))// if(preg_match("/^0?1[3|4|5|6|7|8][0-9]\d{8}$/",$filter)) if(preg_match("/^0?1[0-9][0-9]\d{8}$/",$filter)) { $userGroup = pdo_fetchall("SELECT * FROM " . tablename(‘exam_user‘) . " WHERE weid=:weid AND phone like :phone ORDER BY id ASC LIMIT " . ($pindex - 1) * $psize . "," . $psize , array(‘:weid‘ => $weid,‘:phone‘=>"%{$filter}%")); $total = pdo_fetchcolumn("SELECT COUNT(*) FROM " . tablename(‘exam_user‘) . " WHERE weid=:weid AND phone like :phone " , array(‘:weid‘ => $weid,‘:phone‘=>"%{$filter}%")); }e
时间: 2024-10-08 13:13:25