Changeset 1930


Ignore:
Timestamp:
4/16/2010 2:17:34 PM (5 years ago)
Author:
lowjoel
Message:

Remove connection via the old mysql_* functions, only relying on PDO now.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/website/scripts/Database.php

    r1918 r1930  
    88 
    99require_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 } 
    2310 
    2411/** 
Note: See TracChangeset for help on using the changeset viewer.