随笔分类 -  PHP后端编程

PHP生成不与数据库中随机数重复的随机数
只有注册用户登录后才能阅读该文。

posted @ 2017-11-01 17:13 幻月无痕 阅读(1) 评论(0) 推荐(0)

PHP导入excel发送网易云信短信
摘要:前端HTML代码: 1 <!DOCTYPE html> 2 <html lang="en"> 3 <head> 4 <meta charset="UTF-8"/> 5 <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/ 阅读全文

posted @ 2017-08-25 13:49 幻月无痕 阅读(477) 评论(0) 推荐(0)

PHP产生随机不重复激活码
摘要:1 /** 2 * 生成激活码 3 */ 4 public function create_cdk() 5 { 6 if (IS_POST) { 7 $cdk_num = intval(I('post.cdk_num')); //生成数量 8 if ($cdk_num) ... 阅读全文

posted @ 2017-08-25 10:28 幻月无痕 阅读(4016) 评论(0) 推荐(0)

PHP发送微信模版消息
摘要:1 public function payResult($params) { 2 3 global $_GPC, $_W; 4 5 $weid = $this->_weid; 6 7 $order = pdo_fetch("SELECT id, status, hotelid, roomid FRO 阅读全文

posted @ 2015-09-19 17:30 幻月无痕 阅读(1448) 评论(1) 推荐(0)

PHP判断是否为手机客户端
摘要:0){// 检查浏览器是否接受 WML. return true; }elseif(preg_match('/(blackberry|configuration\/cldc|hp |hp-|htc |htc_|htc-|iemobile|kindle|midp|mmp|motor... 阅读全文

posted @ 2015-09-19 17:26 幻月无痕 阅读(578) 评论(0) 推荐(0)

php多条件查询
摘要:$sql="select *from think_kaoqin WHERE(1=1)"; if(!empty($uid)) { $sql .=" and uid= ".$uid; } if(!... 阅读全文

posted @ 2015-09-18 16:33 幻月无痕 阅读(215) 评论(0) 推荐(0)