Monthly Archives: July 2009

PHP MySQL DATETIME format

0
Filed under Programming, Uncategorized

If you wanted to store the current time in a variable instead of calling NOW() inside a query use the PHP code below.

date ("Y-m-d H:i:s", time());

and wow look at all those caps in the title ;)

Moved away from gist

0
Filed under Programming

Due to the slow loading cause by using the gist embed code I have switch to syntax highlighter. Some code goes beyond the content area but that will be dealt with later. It still displays nice and readable so I see no issues.