$query = DB::insert('tablename', array('column1', 'column2','column3')); foreach ($data as $d) { $query->values($d); } try { $result = $query->execute(); } catch ( Database_Exception $e ) { echo $e->getMessage(); }
kohana 3 :: multi insert
Posted by
anonymous
on Monday, November 1, 2010
Labels:
kohana 3,
kohana 3 database,
kohana framework
0 comments:
Post a Comment