paulyy
11-21-2004, 03:41 AM
How do I create a variable that will detect the page and show a certain image?
I'm not a PHP person at all, so please reply in dummy language :) I figured in theory it would be something like;
$pageimg =
IF page=gallery.php SHOW <img src="images/misc/gallery.gif" />
OR
IF page=cars.php SHOW <img src="images/misc/car.gif" />
I plan on adding this to my phpinclude_start. Any help is appreciated!
I'm not a PHP person at all, so please reply in dummy language :) I figured in theory it would be something like;
$pageimg =
IF page=gallery.php SHOW <img src="images/misc/gallery.gif" />
OR
IF page=cars.php SHOW <img src="images/misc/car.gif" />
I plan on adding this to my phpinclude_start. Any help is appreciated!