2
請幫忙!任何想法爲什麼它打印:Zend數據庫不會產生值
Array([0] => stdClass Object([jobid] => 1))而不是它的值?
$this->dbo->setFetchMode(Zend_Db::FETCH_OBJ);
$userOffer = $this->dbo->select()
->from('offer', array('jobid'))
->where('userid'.' = ?', $userID);
$userAccept = $this->dbo->select()
->from('acceptance', array('jobid'))
->where("userid".' = ?', $userID);
$select = $this->dbo->select()
->union(array($userOffer, $userAccept))
->order("jobid");
while ($row = $this->dbo->fetchAll($select)) {
print_r ($row);
//return $row;
}