Re: [PHP-DB] Question about Classes

2006-06-08 Thread Chris
Andrew Darby wrote: Hello, all. I have a sort of theoretical/sort of dumb question about PHP classes, which I haven't really worked with and don't entirely understand the purpose of, so here goes: Say i want to handle the add or update or delete of an item to a MySQL db, and instead of having t

RE: [PHP-DB] Select distinct field won't return distinct value

2006-06-08 Thread tg-php
Yeah I did.. just didn't have time when I posted that message. I was mis-remembering what cross-tab queries did. They're not really what the original poster was looking for. For anyone interested in crosstab queries (aka "pivot" queries or tables or reports), here's an example of how to do it

[PHP-DB] Question about Classes

2006-06-08 Thread Andrew Darby
Hello, all. I have a sort of theoretical/sort of dumb question about PHP classes, which I haven't really worked with and don't entirely understand the purpose of, so here goes: Say i want to handle the add or update or delete of an item to a MySQL db, and instead of having three functions (funct