Category Archives: Drupal

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

By | February 18, 2010

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… Read More »

Using Aptana Studio 2.0 and PDT Plugin for Drupal Module Development

By | December 3, 2009

Aptana now uses the official Eclipse PDT (PHP Development Tools) plugin instead of their own PHP editor. I have Aptana 2.0.2, build date November 10 2009 on my Macbook.  I’m building a Drupal module, so I need to have PDT recognize (and correctly color-code) files with .module, .info and .install extensions.  There is a Drupal… Read More »