Jump to content

Need help with query string if statment


bluealien

Recommended Posts

Thanks for the help revraz, as it made me understand what I was doing wrong passing it in a flashvar originally:

 

 

so.addParam("flashvars", "cat=<?php IF (!isset ($_GET['Cat'])) { echo 0; } ELSE { echo $_GET['Cat']-1; } ?>");

 

my first Category is 0, even though in XML I call it 1, based on flash variables of starting the array of 0,1,2,3.

 

 

  • 1 month later...

Dang, can some one please explain whay this dont work anymore?

 

what I want it to do is if "gallery.php" does not have Cat= anything, I want it write 0, but if Cat= a number 1, then go to that number. It use to work, but now it doesnt, I think my php has update to a different version, 4+ something, and I now also have v 5 too.

 

<?php IF (!isset ($_GET['Cat'])) { echo 0; } ELSE { echo $_GET['Cat']-1; } ?>

 

thanks for your help

Dang, can some one please explain whay this dont work anymore?

 

what I want it to do is if "gallery.php" does not have Cat= anything, I want it write 0, but if Cat= a number 1, then go to that number. It use to work, but now it doesnt, I think my php has update to a different version, 4+ something, and I now also have v 5 too.

 

<?php IF (!isset ($_GET['Cat'])) { echo 0; } ELSE { echo $_GET['Cat']-1; } ?>

 

thanks for your help

 

ok figured it out something changed on my server and now Cat was case sensitive... grr i hate that.

 

correct:

 

<?php IF (!isset ($_GET['cat'])) { echo 0; } ELSE { echo $_GET['cat']-1; } ?>

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.