|
i don't think you grasp the concept of include yet.
Why not just do
$id = 'whatever';
include('thefile.php');
then in the 'thefile.php'
if($id ... blabla)
do some process here
... See an include as if the code would be litterally written where you include the file
so if File1.php is
$a = 1;
$b = 2;
include('File2.php');
echo $c;
and File2.php is
$c = $a + $b;
is equal to having a file with
$a = 1;
$b = 2;
$c = $a+$b;
echo $c;
... hope you see what I mean... 3am here, tired.
|