Moonlight
03-17-2000, 02:47 PM
I'm trying to do some includes depending of a value of the field in the database.
Let say I have a variable saying $A_Game = "eq";
I currently have an include statement that does like :
include ("incl_char_$A_Game.php");[nbsp][nbsp]// Would include incl_char_eq.php
The include file is to ask other questions depending on the selection of $A_Game.
Now, not every $A_Game value would have to ask other questions.
I would like to be able to only do the include IF there the include file actually does exist. That would mean there is no extra questions to ask. The included file is not on the www accessible path.
How do I do it?
Moonlight
Let say I have a variable saying $A_Game = "eq";
I currently have an include statement that does like :
include ("incl_char_$A_Game.php");[nbsp][nbsp]// Would include incl_char_eq.php
The include file is to ask other questions depending on the selection of $A_Game.
Now, not every $A_Game value would have to ask other questions.
I would like to be able to only do the include IF there the include file actually does exist. That would mean there is no extra questions to ask. The included file is not on the www accessible path.
How do I do it?
Moonlight