Hi.
Is it more of a personal preference to use PHP functions vs. SQL (or vice-versa) or are there measurable advantages to one approach over the other?
Clearly there's some stuff that has to be done in one or the other, but when it comes to tasks like inserting a date into a field, is it better to get the date in PHP and then just insert it into your table, or is it better to let SQL handle it?
That's a very generalized example, but this question comes to mind as a result of seeing a few different approcahes to building apps- some developers seem to want to do as much as possible in SQL, while others (including myself) seem to do as much as possible with PHP, then use SQL when necessary.
What's your take?
-DC