Quantcast
Channel: Fbloggs Geekdom » MySQL
Viewing all articles
Browse latest Browse all 3

How To Assign The Current Date and Time to a MySQL Datetime Field using PHP

$
0
0
This is a no-brainer, but I always forget how to do it. MySQL datetime fields are stored in this format: 2010-02-18 10:33:18. Here’s a trivial example showing you how to populate a datetime field with the current date in the correct format, then write it to a table: Another question might be: “Why?” – when […]

Viewing all articles
Browse latest Browse all 3

Latest Images

Trending Articles





Latest Images