Thread
:
$_GET error
View Single Post
08-14-2009, 12:53 PM
#
2
(
permalink
)
Salathe
Moderateur
Join Date: Apr 2007
Posts: 1,393
Thanks: 5
You need to check if the year was provided, if not use current as a default.
PHP Code:
$year
= isset(
$_GET
[
'year'
]) ?
$_GET
[
'year'
] :
'current'
;
The Following User Says Thank You to Salathe For This Useful Post:
Tanax
(08-14-2009)
Salathe
View Public Profile
Send a private message to Salathe
Visit Salathe's homepage!
Find More Posts by Salathe