The include paths look like this in the code:
include($scriptpath."/directory/file.ext");
connect(database_name) works as a string without quotes since there is only a single variable being passed - it only requires "" if there are multiple
the problem is in close.php - its not viewing the $link as a valid connection to close - testing it as just
[the required functions here]
connect(database_name);
search("id=1","4");
close();
everything works fine - but when I do it as
connect(database_name);
include($scriptpath."/dir/content.php");
close();
where content contains one or more calls to search(); it generates an error.
when I put the connect(database_name); and close(); in the content.php file it generates the error - see why I'm hair pulling? it makes no sense lol.
Mark