最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
PDO 查询mysql数据库
时间:2022-06-24 19:08:33 编辑:袖梨 来源:一聚教程网
代码如下 | 复制代码 |
try { $dbh = new pdo($beidou_connstr,$beidou_user,$beidou_pass); foreach ($dbh->query('select count(*) as count1, count(*) as count2 from bd_reve.user_day') as $row) { print_r($row); } $dbh = null; } catch (pdoexception $e) { print "error!: " . $e->getmessage() . " "; die(); } |
相关文章
- Price Based on Country Pro for WooCommerce v3.7.1 按地区/货币定价 08-17
- 遮天凡尘一叶如何搭配阵容 08-17
- 格莉斯的旅程二段跳有什么使用技巧 08-17
- 冒险之星鬼武者怎么样培养 08-17
- 光隙解语铁铲怎么获取 08-17
- 派对之星德瑞克技能如何 08-17