RE: [PHP] variable issue

From: Date: Fri, 09 Nov 2001 19:35:46 +0000
Subject: RE: [PHP] variable issue
Groups: php.general 
Request: Send a blank email to php-general+get-74045@lists.php.net to get a copy of this message
The else clause can be removed, since it is not doing anything. What is the error message? Kirk > 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.

« previous php.general (#74045) next »