这个课程很好,但是我自己安装的wamp好像版本原因,每次照着课程学的输入代码后总是提示出错好困恼,有什么好办法呢?
<?php
header("Content-type:text/html; charset=utf-8");
if($mai = new PDO("mysql:host=localhost;dbname=t1","root","")){
echo'链接成功';}
else{
echo'链接失败';};
$query = mysql_query('select * from 1');
$arr = mysql_fetch_array($query);
print_r($query);
//}
?>