Hi, I got a problem with my variable dieing, when i require the view.
http://pastebin.com/hws7jcfQ
http://pastebin.com/r2jwZAgM
<a href="games.php?orderBy=price&console=<?php $console; ?>">Order By price</a>
<a href="games.php?orderBy=rating&console=<?php $console; ?>">Order By Rating</a>
<a href="games.php?orderBy=date&console=<?php $console; ?> ">Order By Date</a>
This is where when, you click the button it refreshes and sends $console back again, so the page knows which console, but console has died by this point?
Variable dies
Moderator: General Moderators
-
Peter Kelly
- Forum Contributor
- Posts: 143
- Joined: Fri Jan 14, 2011 5:33 pm
- Location: England
- Contact:
Re: Variable dies
I havent looked at the code your posted but try changing & to & in the links you posted.
Re: Variable dies
Nope didnt do the trick 
Re: Variable dies
<?php $console; ?>
should be
<?php echo $console; ?>
should be
<?php echo $console; ?>
Re: Variable dies
Made my day, thx alot that worked!
-
Peter Kelly
- Forum Contributor
- Posts: 143
- Joined: Fri Jan 14, 2011 5:33 pm
- Location: England
- Contact:
Re: Variable dies
Haha missed out the obvious
O well glad its fixed 