Recent content by indigo21

  1. I

    In PHP, how do I add a time period to a DateTime object in version < 5.3.0.0?

    The DateTime class is available in PHP 5.2.9.0 however, the date_add function is absent. How can I add a week to a DateTime object?
  2. I

    Why is my PHP DB connection not being retained over static function calls?

    Say this is my class.... <?php class XXX { public static $dbConnection; public static function initiate() { $dbConnection = mysql_connect("localhost", "xxx", "xxx"); } public static function terminate() { mysql_close($dbConnection); } } ?> Now this is the PHP that uses it... <?php...
Back
Top