$today=date("Y-m-d"); $yesterday = date('Y-m-d', mktime(0, 0, 0, date("m") , date("d") - 1, date("Y")));
- $today=date("Y-m-d");
- $yesterday = date('Y-m-d', mktime(0, 0, 0, date("m") , date("d") - 1, date("Y")));
$today=date("Y-m-d"); $yesterday = date('Y-m-d', mktime(0, 0, 0, date("m") , date("d") - 1, date("Y")));
Quick tip or note to self: How to get yesterday's date irrespective of date format or daylight savings time. $today=date("Y-m-d"); $yesterday =...
What? This is intended for activity/session durations and although I usually get MySQL to do the date/time...
What? For those of you who use Preg_Replace. Preg_replace is a function that uses regular expressions to search and...
I've decided to put something in here as it took me an age to find out how I could do it. This is when using a MySQL...
The Issue Basically you have a HTML form with an input field type of 'FILE' (ie. <input type="file"...
What? This is a quick note on how to reduce a whole bunch of CSS into a single line without unnecessary spaces and new...
What? Just a quick note to refine a function that will take a date in the past and return the number of years, months, weeks,...