I have 2 includes:
1st has sql connection data
$host="localhost";
$user="root";
$pass="";
$database="test";
$conn=mysql_connect($host,$user,$pass);
mysql_select_db($database,$conn) or die ("Could not open database");
--- works fine
2nd has query
$sstmt = "select * from users where empnum=43971 ";
$results=mysql_query($sstmt);
$row=mysql_fetch_object($results);
--- will not work
But if I move connect into the same include - both work.
Why am I losing my connection??