1、在PHP中 使用mysqli扩展库对mysql 的dql操作复制代码 代码如下:<?php header(“Content-type: text/html;charset=utf-8”); //mysqli操作mysql数据库(面向对象方式) //1、创建MySQLi对象 $mysqli =new MySQLi(“localhost”,”root”,”root”,”test”); if($mysqli->connect_error){ die(“连接失败”.$mysqli->connect_error); } //2、操作数据库(发送