hhisc383 Posted February 4, 2007 Share Posted February 4, 2007 Hey everyone. I'm having a problem with images showing up with the following script: <?php if ($_GET['go']=='shows') { include 'content/contentShows.php'; } elseif ($_GET['go']=='journal') { include 'content/contentJournal.php'; } elseif ($_GET['go']=='audio') { include 'content/contentAudio.php'; } elseif ($_GET['go']=='video') { include 'content/contentVideo.php'; } elseif ($_GET['go']=='merch') { include 'content/contentMerch.php'; } elseif ($_GET['go']=='bio') { include 'content/contentBio.php'; } elseif ($_GET['go']=='photos') { include 'content/contentPhotos.php'; } elseif ($_GET['go']=='contact') { include 'content/contentContact.php'; }else{ include 'content/contentNews.php'; } ?> That script is in the middle of my site to show the content for whatever someone clicks on. When they click on, lets say 'shows', everything comes up like it should except for the images....any ideas? Here is the code for one of the content pages that includes images: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Untitled Document</title> <style type="text/css"> <!-- body { background-color: #20496b; } .style3 {font-family: Arial, Helvetica, sans-serif; font-size: 12px; color: #FFFFFF; font-weight: bold; } .style4 { font-family: Arial, Helvetica, sans-serif; font-size: 12px; color: #FFFFFF; } a:link { color: ffff66; text-decoration: none; } a:visited { text-decoration: none; } a:hover { text-decoration: underline; } a:active { text-decoration: none; } --> </style></head> <body> <p align="left" class="style4"><img src="../images/headings/shows.jpg" width="150" height="35" /></p> <p align="left" class="style4"><strong>02/22/2007</strong> 09:00 PM - The Roxy<br /> West Hollywood, California 90069 - </p> <p align="left" class="style4">Gonna try to record our 1st live album/video, so pass the word around and come be a part of BHC history:-) More info to come...</p> </body> </html> Link to comment https://forums.phpfreaks.com/topic/36970-php-script-help/ Share on other sites More sharing options...
Balmung-San Posted February 4, 2007 Share Posted February 4, 2007 So you mean the images in the included code don't show up? Are the images relatively pathed? If so, in relation to the included script, or the script you're including? Link to comment https://forums.phpfreaks.com/topic/36970-php-script-help/#findComment-176446 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.