摘要:
//提交多个出差人员 .命名为数组 name="apply_members[] " //php接收到数据 为 数组 $aa = array('0'=>11,'1'=>22,'2'=>33); //使用 $aa = implode($aa,',') ; 拼成字符串.以逗号隔开, 入库,.方便查询 st 阅读全文
摘要:
支付顺序-->微信支付到公司账户-->待出票-->查询所有待出票订单 -->遍历提交订单-->火车票接口放回订单id-->存入order订单表中 -->读取订单表-->付款-->从我们公司账户 阅读全文
摘要:
function toweek($date){ $num = date('w',strtotime($date)); $week = array('0'=>'周日','1'=>'周一','2'=>'周二','3'=>'周三','4'=>'周四','5'=>'周五','6'=>'周六'); retur 阅读全文
摘要:
01 输出中文乱码 02json_encode()转义成json入库,默认把中文转成unicode 03 二次开发的php文件或者html文件中.中文编码不是utf-8的,选择txt文本或者editplus打开,另存为utf-8.然后修改代码中设置的编码为utf-8. 编译的时候,先查看文本的编码. 阅读全文
摘要:
if("undefined" == typeof myVar01) 阅读全文
摘要:
<?phpreturn array('CJ_V' => 'v0.15',) <script src="/js/reserve.js?<?=C('CJ_V')?>"></script> 阅读全文
摘要:
禁止加单引号1 href传参的值 (&t_type='航班') 错误 <a href="check_apply?applyid=<?=$applyid?>&applyitem_id=<?=$applyitem_id;?>&t_type=航班&date=<?=$v['date'];?>"> 禁止加单引 阅读全文
摘要:
asdf 阅读全文
摘要:
mysql cmd show variables like "group_concat_max_len"; concat 合并多条数据 成一个逗号分隔的字符串 查找mysql的配置文件find -name my.cnf 在文件中 找到在[mysqld]分组下添加 group_concat_max_l 阅读全文
摘要:
$matching_tickets = ''; foreach ($list as $kk => $vv) { $type = substr($vv['train_code'], '0', '1'); if ($train_type == $type) { $matching_tickets[] = 阅读全文