One of the reasons I LOVE WordPress is that it makes some mundane programming chores very easy, particularly working with the database. WP uses a modified version of the ezSQL to interact with the database, and provides a number of data cleansing functions, both of which are huge time savers. One other thing that WP [...]
WordPress – Tips on Creating and Updating Tables with dbDelta
by byron on April 23, 2011 in PHP, Programming, WordPress, WordPress Plugins
PHP – Sort a Multi-dimensional Array by Value for a Key
by byron on March 23, 2011 in PHP, Programming, Web Development
Here’s a problem I’ve run into a time or two with sorting arrays. I had a multi-dimension array that I needed to sort on a the values for a specific key (“name” in this case). This array is similar to what you would get back from a mysql database query when you use ARRAY_A to [...]
OOP PHP: What is the Double Colon in Objects/Classes for?
by byron on January 16, 2009 in PHP
I happen to be the only PHP programmer that I know, so it’s hard to ask your buddy what the heck that :: is used for in some OO PHP programs. I know you could post it on a forum and get the answer, but I never did. And Google wasn’t really forth coming when [...]
PHP: Using Switch to test Multiple Conditions
by byron on August 3, 2008 in PHP
Ok, so maybe this is common knowledge, but I still felt a little clever when I figured out this trick. The situation was that I wanted to test a bunch of different conditions to figure out which time category a date falls into. It would be fairly simple to do with a bunch of if…then…else’s, [...]
PHP: Capture Included File Contents to Variable
by byron on July 20, 2008 in PHP
I banged my head against several walls on this a while back and finally gave up. Today I found this post over at bin-co.com describing how to capture the contents of an include file to a variable. Here’s the code…thanks Binny! | The code:
PHP: Proper Case Function for PHP Strings
by byron on June 30, 2008 in PHP
Yes, PHP does have a proper case function for strings: ucwords($string) If you’re looking for the lower and upper case string functions…here you go: strtolower($string); strtoupper($string); Why not a strtoproper(), just to keep it consistent? Well, consistency here wouldn’t exactly be consistent for PHP, would it ?
PHP: What is the & Ampersand Preceding Variables
by byron on June 6, 2008 in PHP
Well, this one is hard to find on Google, so I’m putting it in WhyPad to make it easy to find…at least for me, and I guess for you too since you here. Welcome! You may see PHP code snippets (PHP 5+ only) that have an ampersand, ‘&’, preceding a variable like &$my_variable. So, what [...]
Codeigniter: ActiveRecord Join Tip
by byron on May 21, 2008 in PHP
I ran into a problem with a SQL JOIN in Codeigniter’s ActiveRecord class. This post will help you get past that, but first a little intro to frameworks. If you’re a PHP developer, you have probably considered one of the incredibly useful frameworks that are available today. Cake, Zend, Symfony, and Codeigniter are some of [...]
Recent Posts
Popular Posts
- Excel Spreadsheet of US States
- Get ASP.NET DropDownList Selected Value with jQuery
- Javascript: How to get an Object's ID
- ASP.NET - Get User Name Under Windows Authentication
- SAP: Deciding about SAP-BPC (nee Outlooksoft)
- WordPress: Get Category ID for a Category Page
- PHP: What is the & Ampersand Preceding Variables
Tags
Categories
- Accounting (1)
- adobe air (1)
- ASP.NET/C# (16)
- Blogging (8)
- Books/Movies (1)
- Food/Travel (1)
- Google (1)
- iOS (3)
- iTunes/iPod (1)
- Javascript Frameworks (3)
- jQuery (3)
- Mac (4)
- Microsoft Excel (7)
- Microsoft Outlook (1)
- Miscellany (13)
- PHP (8)
- Productivity (6)
- Programming (7)
- SAP (52)
- Software (2)
- SQL (2)
- Web (5)
- Web Development (13)
- WordPress (18)
- WordPress Plugins (3)
- WordPress Themes (3)
- Words/Quotes (1)
- Worksoft Certify (6)
- YouTube (2)


