这是我调用存储过程的代码。它总是只保存1个值。
public function getClientTerminal(){
$form = $this->getUserData();
$DAO = $this->getDAO('DAO');
$result=$DAO->query('getClientTerminal',$form);
$y = sizeof($result);
$i = 0;
DO
{
$form['terminal_id'] = $result[$i];
$DAO = $this->getDAO('DAO');
return $this->status(0,true,'insert.success',$DAO->query('insertTerminals',$form));
$i++;
}
WHILE ($i < $y);
}