#PDO

pdo的使用

<?php/**pdo的使用**/try{$dbh=newPDO('mysql:host=localhost;dbname=wc','root','root');foreach($dbh->query('SELECT*fromss')as$row){echo'<br/>';print_r($ro...
代码星球 ·2020-04-02

解决Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in

php 5个版本,5.2、5.3、5.4、5.5,怕跟不上时代,新的服务器直接上5.5,但是程序出现如下错误:Deprecated:mysql_connect():Themysqlextensionisdeprecatedandwillberemovedinthefuture:usemysqliorPDOin...
首页上一页12345下一页尾页