PHP Classes

How about table joins

Recommend this page to a friend!

      ArrayQry  >  All threads  >  How about table joins  >  (Un) Subscribe thread alerts  
Subject:How about table joins
Summary:How about table joins
Messages:3
Author:David Hyland
Date:2011-03-20 17:01:45
Update:2011-03-21 15:15:56
 

  1. How about table joins   Reply   Report abuse  
Picture of David Hyland David Hyland - 2011-03-20 17:01:45
another good enhancement would be to build in some form of table join functionality for more complex queries.

  2. Re: How about table joins   Reply   Report abuse  
Picture of Mark Berube Mark Berube - 2011-03-21 14:28:07 - In reply to message 1 from David Hyland
Good idea. I built this class to save time and clean the code needed with a ludicrous amount working with arrays and single tables. I'd have to think about the structure and the best way to include it into the class, but I'm thinking that the best way to handle that would be to add another dim to the array ...the 1st level's keys would then represent which table the next level's data is relevant to... Then you would be able to drop the set_table method entirely from the class.

  3. Re: How about table joins   Reply   Report abuse  
Picture of David Hyland David Hyland - 2011-03-21 15:15:56 - In reply to message 2 from Mark Berube
I didn't think it would be easy :)