Hi Nogdog.
Hi
files structure
/ _images
/php_scripts
[INDENT]-getscv_root_level.incl
-getscv_level2.incl[/INDENT]
/newsletters
[INDENT]/august
-index.php[/INDENT]
-index.php
-training_register.php
please note that the include files are the sames except for the way they are point to different direcoty levels.
pages in the root level would refer to getscv_root_level.incl
snippet of code for getscv_root_level.incl:
echo "<td class=\"content bordersolid\">".($Entry[2] == "" ? " " : "<a href=\"".$Entry[4]."\" title=\"".$Entry[2]."\" target=\"\">".$Entry[2]."</a>")."</td>";
$temp = "training_register.php?course=".$Entry[2]."&d=".$Entry['DisplayDate'];
echo "<td class=\"content bordersolid\"><a href=\"".$temp."\" id=\"imglink\" title=\"\">
<img src=\"_images/home_register_button.gif\" border=\"0\"></td>
</a>";
pages in the root level would refer to -getscv_level2.incl
snippet of code for getscv_level2.incl:
echo "<td class=\"content bordersolid\">".($Entry[2] == "" ? " " : "<a href=\"../../".$Entry[4]."\" title=\"".$Entry[2]."\" target=\"\">".$Entry[2]."</a>")."</td>";
$temp = "training_register.php?course=".$Entry[2]."&d=".$Entry['DisplayDate'];
echo "<td class=\"content bordersolid\"><a href=\"../../$temp\" id=\"imglink\" title=\"\">
<img src=\"../../_images/home_register_button.gif\" border=\"0\"></td>
</a>";
I hope this is more decriptive
the only difference between the 2 snippets are "../../"
I ideally i would only like to point to the one file regards of where in the website (be it at root level or nested directories) the calling page is located.
Thanks