Date: 11/01/99
- Next message: Teodor Cimpoesu: "Re: [PHPLIB] DB_sql and several queries per object"
- Previous message: Kristian Koehntopp: "Re: [PHPLIB] 7.2 and pre-auth"
- Maybe in reply to: Bob Strouper: "[PHPLIB] DB_sql and several queries per object"
- Next in thread: Kristian Koehntopp: "Re: [PHPLIB] DB_sql and several queries per object"
- Reply: Kristian Koehntopp: "Re: [PHPLIB] DB_sql and several queries per object"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
>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.
- Next message: Teodor Cimpoesu: "Re: [PHPLIB] DB_sql and several queries per object"
- Previous message: Kristian Koehntopp: "Re: [PHPLIB] 7.2 and pre-auth"
- Maybe in reply to: Bob Strouper: "[PHPLIB] DB_sql and several queries per object"
- Next in thread: Kristian Koehntopp: "Re: [PHPLIB] DB_sql and several queries per object"
- Reply: Kristian Koehntopp: "Re: [PHPLIB] DB_sql and several queries per object"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

