Simultaneous Database Connections
Do you have a class or function that requires simultanous connections to different databases? There is a fourth parameter on mysql_connect fucntion, that if set to true will allow simultaneous database connections in php. Otherwise the database resource is only going to the last database you connected to. Add the fourth parameter like this: $link1 [...]
Calculate Average Date
I had a client that wanted a special calculation for the average of several dates. Usually these types of date comparisons are average number of days from today, or some sort of average age calculation, but this was specific to financial reporting and they wanted the average reporting date. So what I came up with [...]