08-14-2009, 04:40 PM
|
#4 (permalink)
|
|
The Addict
Join Date: May 2009
Posts: 287
Thanks: 5
|
Quote:
Originally Posted by Tanax
Yea, I tried like this:
PHP Code:
if(isset($_GET['year'])) $year = $_GET['year'];
But that didn't work. Your code worked however. So thanks!
|
His worked because you were not setting a default value if none was found, so PHP was using a[n] ''. <-- {Blank Space}
|
|
|
|