sosojenn Posted October 2, 2007 Share Posted October 2, 2007 Hi I'm not sure how I'm gonna explain this but I really need some help. There's this website that I'm working on and at the top there is a banner that goes across....now when you go to a new page it is supposed to change to a new banner....however what is happening is that the banner from the previous page is getting "stuck" and showing up on the next page you navigate to and basically is not refreshing to show the banner which corresponds with the next page. Here is the script that is calling the banner. Any help would be welcome! thanks. <div id="feature"> <? switch ($_SESSION['odabran']) { case "1": $num = "100"; break; case "2": $num = "210"; break; case "3": switch ($_SESSION['deo']) { case "1": $num = "201"; break; case "2": $num = "301"; break; case "3": $num = "401"; break; case "4": $num = "501"; break; case "5": $num = "601"; break; case "6": $num = "701"; break; default: $num = "201"; break; } break; case "4": $num = "601"; // bookstore kao DS break; case "5": $num = "801"; break; case "6": $num = "901"; break; default: $num = "100"; break; } require('inc/baza.php'); $qw = "SELECT featStamp FROM feature WHERE stamp='$num' ORDER by uid DESC"; $r = mysql_query($qw); $row = mysql_fetch_array($r); extract($row); echo"<img src='upload/features/$featStamp' width='780' height='221' />" ?> </div> Quote Link to comment https://forums.phpfreaks.com/topic/71564-image-issues/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.