If I put a mysql connect function in a separate file from my other scripts, is the connection still valid?:
mysql_connect($hostname, $username, $password) OR DIE;
mysql_query("select * from orange");
So, even though the mysql_connect function is scoped within a sub function, it still makes a valid global resource for all mysql calls to use? So mysql somehow is creating some global variable for the lifetime of the script, even though technically the call was scoped in some sub function?