In this short snippet course you will learn how to convert MySQL Time-stamp to Facebook Style Time Ago format using both procedural and Object oriented methods in PHP.
supports HTML5 video
Introduction and quick demo
Converting datetime to Unix timestamp
In this lecture you will learn hot to convert MySQL datetime to Unix timestamp in PHP
Converting from timestamp to ago format
In this lecture you will learn hot to convert from timestamp to ago format using PHP
Styling and debugging
In this lecture lets add some style and I also show you how to fix possible issues that might arise.
Using Object Oriented Programming (OOP) Method
In this lectrure I will show how to easily convert the code we have written to OOP form.