All entries of my technical and business blog
Zend_db fill in multiple placeholders
I’ve been using Zend_db to create a query which does a simple search on three columns of a table. Fortunately, I found out that the where() statement handles single parameters intelligently when there are multiple placeholders. In the case that there are many placeholders but only one parameter, that parameter will be added to each of the placeholders the same.
Milwaukee PHP Users Group - 1st year anniversary
jQuery Validation - greedy on your forms?
I was creating a page with two forms on it. I ran into an issue where I would fill out one form, and it would fail validation. Then, I tried to do the other form with passing fields, and it would keep invalidating the previous form on the same page.
My Meetmeme card
I received a set of cards from meetmeme.com. In addition to my cards, they also provide the following URL: http://mtme.me/c89ab
Excel won't handle UTF-8 in CSV? Force a different encoding in PHP
When generating a CSV file with PHP in the UTF-8 encoding, Microsoft Excel freaks out. It just doesn’t show the proper encoding. Thank you Microsoft! However, I did find a way to handle this encoding and make it compatible for Windows/Microsoft Excel.
Fix: FirePHP not showing output in console in Firebug
When using FirePHP, I ran into this issue where I could not see the output of the debug information. All the documents I found kept suggesting that I had not enabled the Console tab for this particular site.
Guitar Chord fingering with PHP
After cleaning up some old files in my archive, I found this snippet of code I made a while ago.
Conditional Comments - fix blocking
Ok - so I can’t take any credit for this - but check out this blog post: http://www.phpied.com/conditional-comments-block-downloads/
Object Cache Class in PHP
While I’m infinitely happy that all uses of a class in PHP now are references, that’s just not good enough. Sometimes I want to use my newly created object in many different methods. I have two options. First, I could create it as a Singleton, and always call the instance getter. Or, I could use an object cache.