我们可以将mysqli连接对象转换为字符串连接。
$mysqli = new mysqli("localhost", "my_user", "my_password", "world");
我们可以将$ mysqli转换为程序性查询吗?或者它是不可能的。
$query = "SELECT * FROM City ORDER by ID DESC ";
if ($result = mysqli_query($mysqli, $query)) {
/* fetch associative array */
while ($obj = mysqli_fetch_object($result)) {
printf ("%s (%s)\n", $obj->Name;
}