现在如果想要使用过程式的代码来操作数据库,只能使用 mysqli 扩展了。当然,mysqli 扩展也是支持面向对象式的写法的。...什么是 MySQLi
MySQLi 扩展允许我们访问 MySQL4.1 及以上版本的数据库所提供的功能。...$mysqli = mysqli_connect("localhost", "root", "", "blog_test");$res = mysqli_query($mysqli, "SELECT *...$mysqli = new mysqli("localhost", "root", "", "blog_test");$res = $mysqli->query("SELECT * FROM zyblog_test_user...$mysqli = new mysqli("localhost", "root", "", "blog_test");$res = mysqli_query($mysqli, "SELECT * FROM