I am? I am!
What I'm asking is how does supplying the parameter to the include make any difference to the included code?
Is it possible that you actually have a file called ...
includes/sectors.php?sid=$sid
Or are you expecting the $sid to be translated into the actual sid value?
e.g.
<?php
$sid='PHP12345';
function sectors($sid)
{
include "includes/sectors.php?sid=$sid";
}
sectors($sid);
?>
And you have a file called
includes/sectors.php?sid=PHP12345
On Windows, you cannot have a file with a ? in the name.
If I try this code I get ...
Warning: include(includes/sectors.php?sid=PHP12345): failed to open stream: No such file or directory in C:\t1.php on line 5
Warning: include(): Failed opening 'includes/sectors.php?sid=PHP12345' for inclusion (include_path='C:\PEAR\pear;.\;c:\php5\includes\;c:\php5\pear\;D:\Data\PHP\Includes\') in C:\t1.php on line 5
Now.
If you are suppressing warnings, then you will not see this message.
And as include is optional, the code will continue running.
But I suspect this is not what you require.