這個課程很好,但是我自己安裝的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);
//}
?>