Archives : December 25th, 2013

PHP: trim spaces in the middle of a string

When you let users input text in a textfield or input box it is always a good idea to use trim function to remove spaces form the beginning or the

Continue reading

MySQL: Select today, yesterday or day before yesterday records

Usually when you work with records where a date or time-stamp field is present you need to select records from: today records yesterday records day before yesterday records Lets say

Continue reading

How to restart an Activity on Android (Java)

Using the function bellow in a activity class you can restart the current activity.