PHP MysqlI操作数据库 1连接数据库. //procedural style$mysqli = mysqli_connect('host','username','password','database_name'); //object oriented style (recommended)$mysqli = new mysqli('host','username','password','database_name'); 推荐下面的方式 <?php//Open a new conn…