Re: Re: Multiple MySQL INSERT into loop

From: Date: Thu, 07 Feb 2008 10:59:01 +0000
Subject: Re: Re: Multiple MySQL INSERT into loop
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-268863@lists.php.net to get a copy of this message
On Thu, 2008-02-07 at 10:55 +0000, Colin Guthrie wrote: > Simplest way would be to define your data in an array instead: > > e.g. $data = array(1 => array('id' => x, 'entry' => y, > 'name' => z), ...). > And of course to tie it all into a transaction that can be rolled back in case of problems. --Paul

« previous php.general (#268863) next »