The code in index.php is something like this:
PHP Code:
$id = $_GET["id"];
$cat = $_GET["cat"];
$path = '';
if ((!$id)||(!$cat)) {
$id = 'main';
$cat = 1;
}
switch ($cat) {
case 1: break;
case 2: $path = 'articles/';
break;
case 3: $path = 'interviews/';
break;
case 4: $path = 'photogallery/';
break;
case 5: $path = 'reports/';
break;
case 6: $path = 'archive/';
break;
}
include("left.html");
include($path.$id.'.html');
Let's say the requested page is 2010brian.html from the 'articles' folder. When displayed on the screen, the images show up as empty squares. The path seems to be 2010brian/image.jpg when in reality they are residing in articles/2010brian. I understand what is going on and why, I just need a way around it.