我遇到查询问题,我使用mamp和数据库连接sql但没有错误,但是我无法查询表值,我的查询代码没有得到任何结果。请帮忙......
<?php
//function.php
function dbConnect($server,$username,$password,$database){
$connect = new mysqli($server,$username,$password,$database);
if($eror=$connect->connect_error){
die("dbfailure [".$eror."]");
}//echo "dbConnected";
}
&GT;
<?php include('./function.php'); dbConnect('localhost','dbtBL','dbtBL','dbtBl');?>
&#34 ;;
}
?&GT;