View Single Post
  #7  
Old 09-01-2009, 04:27 PM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,201
 

Default Re: spitting variables

I am getting a litle confused here. Why do you need to assign them to new variables? You can PM me if you want to.
All locations are already in $location array so you just need to use it properly.
$location array contains arrays (0, 1, 2, 3...) for each location and each of these arrays contains name (0) and location (1). If you are on home page $location will have one array (0) and this array will have record 0 - Home and record 1 - home.php so $location[0].0 will give you "Home" and $location[0].1 will give you "home.php". If you are in category $location will have all of the above + one more array (1) which will have record 0 - cat name and record - 1 home.php?cat= so you can call it like this $location[1].0 will give you "cat name" and $location[1].1 will give you "home.php?cat="
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote