Re: [PHP] Good SQL builder class

2009-12-05 Thread Larry Garfield
I actually spent a great deal of time trying to make purely array based query builders, and came to the conclusion that it's not possible to make a really robust one. However, you can do it with OO and arrays. Have a look at Drupal 7 (current development version of the Drupal CMS). It include

RE: [PHP] Good SQL builder class

2009-12-04 Thread Daevid Vincent
Multi-dimensional arrays generally indicate some kind of glue/hanging table, so you'll have to special case them for your needs... But here is a generic insert and update functions that may be a groundwork for you /** * Insert a single row into a $database.$table from an array hash of colum