for the:
index2.php?page=pageid i use the code
<?php
if (!$page || $page == "") {
include("pages/index.html");
} else {
include("pages/$page.html");
}
?>
is there a way u can modify that to use images? so it may be something like
<?php
if (!$page || $img == "") {
include("pages/index.html");
} else {
include("images/$img.jpg");
}
?>
but when i do that all it does is give me this error, i forget what it says because now all it does is show the index.html page
i also tried keeping it as "page" instead of "img" but it still doesnt work...
can anyone help me out?
index2.php?page=pageid i use the code
<?php
if (!$page || $page == "") {
include("pages/index.html");
} else {
include("pages/$page.html");
}
?>
is there a way u can modify that to use images? so it may be something like
<?php
if (!$page || $img == "") {
include("pages/index.html");
} else {
include("images/$img.jpg");
}
?>
but when i do that all it does is give me this error, i forget what it says because now all it does is show the index.html page
i also tried keeping it as "page" instead of "img" but it still doesnt work...
can anyone help me out?