RE: [PHP] variable issue

From: Date: Fri, 09 Nov 2001 20:07:22 +0000
Subject: RE: [PHP] variable issue
Groups: php.general 
Request: Send a blank email to php-general+get-74051@lists.php.net to get a copy of this message
if(!isset($dte)) { $dte=date("j", time()+$ctime);} You don't need the else statement. ____________________________ Matthew Luchak Webmaster Kaydara Inc. mluchak@kaydara.com -----Original Message----- From: Clint Tredway [mailto:clint@factorxsoftware.com] Sent: Friday, November 09, 2001 2:37 PM To: PHP General Subject: [PHP] variable issue Hey everyone, I need some help with a variable issue. How can I delcare a variable and then if a url variable of the same name is present use that value instead? this is what I have: if(!$dte) { $dte=date("j", time()+$ctime); } else { $dte=$dte; } and this causing an error in the 'if' expression. Thanks! clint -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#74051) next »