Log in

View Full Version : database access


Rich
02-08-2006, 10:34 PM
Hello,

Is there a way to "close" this after it has executed?


chdir("../");
include("global.php");
$site_name = $db->query_first("SELECT site_name from this_data");


I have some additional files calling this file and with the global file open like this, it causes errors on those pages. (I am trying to integrate another independant script I wrote.)

Is there a way to self close the global call in this file with what it displayed?

Rich
02-10-2006, 08:49 PM
Hello,

I got this squared away!

Marco van Herwaarden
02-10-2006, 08:52 PM
replace 'include' by 'require_once'.