OK at the moment I am building a site with dynamic links and so forth. One thing that is really aggrivating me is the following problem
I am trying to "include" a file, but using a different include call
<? include ("./weight_class.php?ID=$ID")?>
the $ID was passed over from the previous page.
in the weight_class.php file I have defined what should happen if a particular $ID is used, it will print different text depending on the $ID. However the include just doesnt seem to want to work
The document where the include is keeps giving this error message:
Failed opening './weight_class.php?ID=mcruiserweight' for inclusion (include_path='') in
Now I have made sure that both the file with the include, and the file that is being called for, both exist and both are in the same directory. In the weight_class.php, i have specified several if......else if statements to print different things, depending on the $ID.
Can any one tell me why this is not working, or am I just making more work for myself without seeing a simple solution.