MySQLi基于OOP的编程
<?php //1.建立到MySQL的连接 $mysqli=@new mysqli('localhost','root','root','test'); if($mysqli->connect_errno){die('Connect Error: