Words and code from my journey thorugh the web
Various tips and tricks for creating rich and complex HTML emails that work in all major email clients including advice on layout, text formatting and images.
Top HTML Email Development Tips »
Indexing database fields can do wonders to speed up complex PHP queries. This post goes shows how easy it is to know where to use indexes and how, using MySQL, PHP and PHPMyAdmin.
Speed up PHP through MySQL indexing »
A few text glow effect samples and examples using CSS3, achieved by stacking the text-shadow CSS element.
Creating a CSS3 text glow effect »
Large backgrounds in the BODY or DIV element will not display on an iPhone (Safari) because of the dimensions of the image which cannot exceed 5.2 mega-pixels.
Large background image not displaying on iPhone »
A useful Twitter style PHP time interval function to calculate the difference in seconds, minutes, hours or days between two different dates and times. The function can be used to display seconds, minutes or hours only, or display the most relevant time measurement unit automatically.
PHP time interval function »
A useful PHP function that gets the first paragraph from a regular HTML string, with option to remove the paragraph tags.
Get first paragraph function in PHP »
Some useful Spry code that allows a single, unique row or record to be selected from an XML dataset. The process involves first passing a unique row ID to a detail page and then filtering a single row from the XML using the unique ID.
Find specific row in Spry XML Dataset »
A few simple Spry snippets to limit the number of rows displayed from a Spry XML Dataset, limit the characters displayed in a Spry field and how to get around the security issues preventing xml external feeds to be used.
Limit rows & characters & using external feeds with a Spry dataset »
Getting into the nuts and bolts of Wordpress PHP in order to customise Meta Titles for the various page types including category meta title, homepage meta title, and post meta title.
Wordpress meta titles on Home, pages, posts and categories »