Preg_match sql database connect
===

i was wondering if someone can explain this: i am trying to the php to the SQL and it keeps on failing. Is there something i am missing in the password sector? What should i enter?


    define('DB_HOST',"localhost");
    define('DB_USER', (preg_match("/url.co.cc/i",$_SERVER["SERVER_NAME"])?"databaseName":"databaseUser"));
    define('DB_PASS', (preg_match("/url.co.cc/i",$_SERVER["SERVER_NAME"])?"password":"password"));
    define('DB_NAME', (preg_match("/url.co.cc/i",$_SERVER["SERVER_NAME"])?"databaseName":"databaseUser"));
