I'm not sure what the problem is, I have a file called dbs.inc.php which contains the user/pass/database variables and mysql_connect(); statement. If I include("dbs.inc.php"); in a function the next line underneath it always has to be mysql_select_db($database); is that normal? Shouldn't the included variables be accessable until the function ends? Why does adding a few extra lines of code between the connect/select statements prevent the select from working?
Again:
include("dbs.inc.php");
mysql_select_db($database);
works. and if I do this:
include("dbs.inc.php");
$a = "123456";
mysql_select_db($database);
the mysql_select_db($database) will fail to select the database?