Convert MySQL Timestamp into a Nicer-looking Date Format for PHP
January 11th, 2010After spending 20 minutes searching online for a way to convert the date stored into MySQL into a human-readable format in php, I thought I would share my solution with the world.
Assuming you’re already doing a foreach or a loop to pull your MySQL variable (in this case, the ($row['timestamp']) below), use the following code:
$date = strtotime($row['timestamp']);
$date = date(’n/d/Y, g:ia’, $date);
echo $date;
Hopefully that will save sometime time.
Free Images Website
December 25th, 2009
I’d like to introduce the new free images website with new images posted periodically.
The images come from my own collection that I personally took. Even though it took countless hours to capture, sort, cleanup and process all of these images, I thought it would be a good thing if I share them with the world. They are all original, high-resolution, royalty-free, professional photographs free for commercial use. Visitors can subscribe to the blog’s RSS feed and get daily notifications. If traffic to the site proves to be successful, maybe someday I’ll wet my beak by adding a little Google AdSense advertising.
