phpgroupware-developers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Phpgroupware-developers] Is there some problem using adodb?


From: Chris Weiss
Subject: Re: [Phpgroupware-developers] Is there some problem using adodb?
Date: Fri, 10 Jun 2005 08:30:05 -0500

used that way, i'm not sure why you think it wouldn't be affected.

and, IIRC(WIPD)* that's the old db way not adodb.  the way you have
it, you would need a seperate db object for each function.


* If I Remember Correctly (Which I Possibly Don't)


On 6/10/05, sigurdne <address@hidden> wrote:
> it seems like the db-objekt of funcion1 is affekted by function2. Is there a
> way to get around this?
> 
> example:
> 
> $this->db = $GLOBALS['phpgw']->db;
> 
> function function1 ()
> {
>   $sql = "SELECT * FROM phpgw_accounts";
>   $this->db->query($sql,__LINE__,__FILE__);
>   while ($this->db->next_record())
>   {
>     $this->function2($this->db->f('account_id'));
>   }
> }
> 
> function function2 ($account_id)
> {
>   $sql = "SELECT * FROM phpgw_accounts WHERE account_id = $account_id";
>   $this->db->query($sql,__LINE__,__FILE__);
>   $this->db->next_record();
>   _debug_array($this->db->f('account_lastname'));
> }
> 
> 
> Regards
> 
> Sigurd
> 
> 
> 
> _______________________________________________
> Phpgroupware-developers mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/phpgroupware-developers
> 
>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]