0
如何使用tablegateway我綁定參數Zend框架2,這裏是我使用我怎樣才能在ZF2 tablegateway綁定參數
$adapter = $this->tableGateway->getAdapter();
$result = $adapter->query(
"SELECT * "
. "FROM TABLE "
. "WHERE SOME_ID = $SOME "
. "AND STATUS = 1 "
);
$dataSource = $result->execute();
$statement = $dataSource->getResource();
$result = $statement->fetchAll(\PDO::FETCH_OBJ);
請建議我一個安全的查詢生成器代碼
謝謝tasmaniski爲您提供寶貴的答案 –