Possible Duplicate:
How do I add more than one row with Zend_Db?
i would like to build this query
INSERT INTO ad-page (ad_name, page_name) VALUES ('value1', 'value2'), ('value3', 'value4') , ....
i tried this which did not work
$adpagemodel = new Admin_Model_AdPage();
if(count($adpage)> 0)
foreach($adpage as $page)
{
$newdatap[]['page_name'] = $page;
$newdata[]['ad_name'] = $adname;
}
$adpagemodel->insert($newdata);
and please also check this