摘要: PDO(PHP Data Object)数据库访问抽象层 1,编码一致性 2,灵活性 3,高性能(C语言) 4,面向对象特性 支持的数据库: 阅读全文
posted @ 2017-05-11 18:53 WilliamHu 阅读(73) 评论(0) 推荐(0) 编辑
摘要: 创建数据库:create database db_name drop database db_name创建表:create table tb_name like tb_old_namedrop table tb_name 创建索引:create index 索引名称 on 表名称 (列名称,。。。) create index personIndex on person (lastNam... 阅读全文
posted @ 2017-05-11 13:26 WilliamHu 阅读(90) 评论(0) 推荐(0) 编辑
摘要: www.maxomnis.com的index.php文件内容 <?phpsession_start();setcookie("user", "alex proter", time()+3600,'/home','maxomnis.com');setcookie("age", "1000000000" 阅读全文
posted @ 2017-05-11 12:18 WilliamHu 阅读(286) 评论(0) 推荐(0) 编辑
摘要: echo strtolower(preg_replace('/((?<=[a-z])(?=[A-Z]))/', '_', $str)).'<br>'; 阅读全文
posted @ 2017-05-11 11:59 WilliamHu 阅读(480) 评论(0) 推荐(0) 编辑