Jump to content

image issues


sosojenn

Recommended Posts

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>

 

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.