【发布时间】:2013-11-12 09:06:14
【问题描述】:
我将返回 MySQL 查询的结果。 但他返回了 MySQL 查询。
public function getLatestId() {
$db = Zend_Db_Table::getDefaultAdapter();
$db->getConnection();
$result = $db->select()->from("raw_data", array(new Zend_Db_Expr("MAX(id) AS locationname")));
return $result;
}
【问题讨论】:
标签: php mysql zend-framework frameworks