尝试使用此查询创建一个下拉列表并尝试返回一个数组,同时执行此操作,而 while 不起作用:s
static public function getConta() {
$criteria = new Criteria();
$criteria->addSelectColumn(MEMataPeer::CONTA);
$criteria->addGroupByColumn(MEMataPeer::CONTA);
$contas = array();
$stmt = MEMatalPeer::doSelectStmt($criteria);
echo "##".$stmt->rowCount();
while($res = $stmt->fetchColumn(0)) { // <- this while don't work don't know why ?????
$contas[$res] = $res;
echo "<br/>[$res]";`