Tag Archives: mysql

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 ;)

MAMP – Showing Errors is good

0
Filed under Apple, Tech

Basically I didn’t want to be tied to an internet connection to my linux dev box to do work anymore, so I found MAMP. Well I actually was pointed at MAMP by Chris but that’s besides the point. Normally when I am developing I run into some errors, and I like to see those errors. MAMP is for developing locally, however by default php errors are not displayed. Now why would I want to develop and not see any errors, come on MAMP team…think about that one!