Re: [PHPLIB] DB_sql and several queries per object From: Bob Strouper (bobw123 <email protected>)
Date: 11/01/99

>Hello,

>I've been making a new object/instance of DB_sql for
>each separate query I make... is this nesessary?

The reason I ask is I'm going to make several INSERTS
in a loop. Do I have to assign Each INSERT a new
object on each iteration?

Or as in he code snippet below do I create one object
and then do all the inserts on that one object?

$db = new DB_Example;
if (is_array($dropdownID))
{
while ( list( $key, $val ) = each( $dropdownID ) ) {
$db_insert = "MY INSERT HERE";
$db->query($db_insert);
}
}

Thank you,
Bob

__________________________________________________
FREE Email for ALL! Sign up at http://www.mail.com

-
PHP3 Base Library Mailing List. Send messages to <phplib <email protected>>.
To unsubscribe, send "unsubscribe" to <phplib-request <email protected>> in
the body, not the subject, of your message.