posted on Tuesday, March 18, 2008 8:27 PM |

I have some application code bases that are 10ish years old now and are in PHP.  Being the lazy good developer I am, if it isn't broke, why update it?

Well, it looks like the hosting provider that runs my brother's business site decided it may be a good idea to upgrade its version of PHP.

I know already know the fix for my problem, it is just a logistical issue.  It is old code I did when I was a wee laddie.  I wasn't even able to drink beer!  I'm pretty sure back then had I drank beer, I wouldn't even liked it.  I know without a doubt it can be optimized heavily but on just one page, I referenced the offending API call mysql_db_query 40+ times.  There are 50 some odd files I need to update.  I know I could just use mysql_query with a mysql_select_db at the start.  Why I didn't do this at the start is a good question, maybe a proper IDE would have fixed this.  This is why I hate being on a shared hosting environment.

I just don't understand why / how mysql_db_query got removed or broke in PHP to where it isn't returning data.  PHP.Net shows it is still there and both query results appear to be supported in PHP 5.

Good thing in theory my brother switched the DNS from his old server to my server and this issue "should" be resolved until we port it to ASP.Net.  But as all things, this is 6 months out.

Your Comments.

No comments posted yet.

Post Comment
Title *
Name *
Email
Url
Comment *  
Please add 7 and 6 and type the answer here: