Sherita Gallati: You probably have an url like this:www.example.com?date=and you probably retrieve the date with:$date = $_GET['date']; When someone goes to www.example.com without the date parameter, $_GET['date'] is null.So you should check that first:if (isset($_GET['date']))$date = $_GET['date'];else$date = date("m/d/y"); check http://www.php.net/manual/en/function.date.php for the parameters in the date functionif you use the unix timestamp, you should use mktime instead of date http://php.net/manual/en/function.mktime.php...Show more
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment