Tag Archives: query

(MySQL) Age in Years for Given Birthdate

Given a birthdate in @dob, here are two simple formulae for age in years : (the second formulae is for age in years to two decimal places, ignoring day of month)

Posted in Uncategorized | Also tagged , , , , | Leave a comment

XPath queries in PHP

XPath is a query language for selecting XML nodes. Suppose that you have a collection of companies represented in an XML document.

Posted in PHP | Also tagged , , , , , , , , | Leave a comment