【发布时间】:2016-02-17 14:00:09
【问题描述】:
is this mean mysqlnd is working on the server?
我在我的php文件中使用了这样的函数,但是主机没有mysqlnd。
那么如何正确替换get_result()函数呢?
我看到了一个解决方案,但未能实施,所以请举个例子。谢谢!
public function getFromDb($tableName) {
$stmt = $this->conn->prepare("SELECT * FROM ".$tableName);
$stmt->execute();
$result= $stmt->get_result();
$stmt->close();
return $result;
}
【问题讨论】:
-
换成什么?
-
语法和格式
-
任何选择@DerVO