摘要: 使用PDO之前首先开启PHP的PDO扩展,方法见百度。 PDO连接数据库的方式有三种 1.通过参数的形式连接数据库 (推荐) //通过参数形式连接数据库 try{ $dsn = 'mysql:host=localhost;dbname=test'; $username = 'root'; $pass 阅读全文
posted @ 2016-02-16 11:29 钱规则 阅读(187) 评论(0) 推荐(0) 编辑