Forum Moderators: coopster
I have a series of images in a DB, each identified with an ID number.
What I want to do is include a file in the page based on the ID number of the image.
I can write the id number to the page using:
<? echo $imageid;?>
And stick in an include using:
<? include($DOCUMENT_ROOT . "/inc/file.txt");?>
But how to combine the two?
What I want is:
<? include($DOCUMENT_ROOT . "/inc/imageid.txt");?>
Can it be done?