Changeset 1930
- Timestamp:
- 4/16/2010 2:17:34 PM (3 years ago)
- File:
-
- 1 edited
-
trunk/website/scripts/Database.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/website/scripts/Database.php
r1918 r1930 8 8 9 9 require_once('Credentials.php'); 10 11 mysql_connect('localhost', $GLOBALS['database_username'], $GLOBALS['database_password']) or die(mysql_error());12 mysql_select_db('eraser') or die(mysql_error());13 14 function PhpToMySqlTimestamp($timestamp)15 {16 return date('Y-m-d H:i:s', $timestamp);17 }18 19 function MySqlToPhpTimestamp($timestamp)20 {21 return strtotime($timestamp);22 }23 10 24 11 /**
Note: See TracChangeset
for help on using the changeset viewer.
