Can someone explain why $dbc is null instead of a resource link. I need that reference because I wanted to use it for mysql_real_escape_string();
$dbc = @mysql_connect (DB_HOST, DB_USER, DB_PASSWORD);
foo();
function foo() {
global $dbc;
var_dump($dbc); // Why is this returning null instead of a resource link?
}