Jump to content

Redirect Problems


everlifefree

Recommended Posts

I'm trying to use this now and the redirect is all working fine expect I can't get it to pull up the different pages for different variables or what ever. Whether is has "is_rave" mark with a 1 or not it still just pulls up the last option. Any help now that I've really changed it?

 

//Profile Switching////////////////////////////////////////////////////////////////
	$rave_check = myF(myQ("
		SELECT * 
		FROM `[x]users` 
		WHERE `id`='".$_GET["id"]."'
		AND `is_rave` = '1'
		ORDER BY `id` DESC
	"));

$tpl -> AssignArray(array(
	"check.rave" => $rave_check["id"],
));

	$artist_check = myF(myQ("
		SELECT * 
		FROM `[x]users` 
		WHERE `id`='".$_GET["id"]."'
		AND `is_artist` = '1'
		ORDER BY `id` DESC
	"));

$tpl -> AssignArray(array(
	"check.artist" => $artist_check["id"],
));

	$club_check = myF(myQ("
		SELECT * 
		FROM `[x]users` 
		WHERE `id`='".$_GET["id"]."'
		AND `is_club` = '1'
		ORDER BY `id` DESC
	"));

$tpl -> AssignArray(array(
	"check.club" => $club_check["id"],
));


    if($rave_check=="'".$_GET["id"]."'")
      {
       header("Location: http://spadespace.com/?L=users.rave&id=".$_GET["id"]."");
       // exit the page to make sure nothing further is added to the headers.
       exit;
       }
     elseif($artist_check=="'".$_GET["id"]."'")
   {
    header("Location: http://spadespace.com/?L=users.artist&id=".$_GET["id"]."");
    // exit the page to make sure nothing further is added to the headers.
    exit;
       }
     elseif($club_check=="'".$_GET["id"]."'")
   {
    header("Location: http://spadespace.com/?L=users.club&id=".$_GET["id"]."");
    // exit the page to make sure nothing further is added to the headers.
    exit;
       }
     else
   {
    header("Location: http://spadespace.com/?L=users.profile1&id=".$_GET["id"]."");
    // exit the page to make sure nothing further is added to the headers.
    exit;
       }

 

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.