PHP Classes

few $db->SelectRows()???

Recommend this page to a friend!

      Ultimate MySQL  >  All threads  >  few $db->SelectRows()???  >  (Un) Subscribe thread alerts  
Subject:few $db->SelectRows()???
Summary:Is it possiable
Messages:2
Author:Szymon N
Date:2011-09-03 18:58:02
Update:2013-02-28 00:23:02
 

  1. few $db->SelectRows()???   Reply   Report abuse  
Picture of Szymon N Szymon N - 2011-09-03 18:58:03
Is it possiable to use few $db->SelectRows() without opening each time new db connection?

  2. Re: few $db->SelectRows()???   Reply   Report abuse  
Picture of Claudio DS Claudio DS - 2013-02-28 00:23:02 - In reply to message 1 from Szymon N
Yes. Just pass $db as a parameter to each function where are you planning to use it. And thats it!!!

Remember that $db is like a pointer to your DB.