Re: shortcuts

From: Date: Mon, 15 Dec 2003 09:04:55 +0000
Subject: Re: shortcuts
References: 1  Groups: php.general.es 
Request: Send a blank email to general-es+get-43646@lists.php.net to get a copy of this message
Si, es que esta mal el ejemplo. Me he dado cuenta cuando lo has mencionado. Cómo estaba haciendo modificaciones se me ha colao. Estos estan bien: if ($kid == 0) { $where_clause = "catfid=0"; } else { $where_clause = "catfatherid=$kid"; } $where_clause = ($kid==0)? "catid = 0": "catfatherid=$kid"; >¿Qué necesidad tienes en este caso de utilizar los condicionales :-? No he entendido la pregunta. Josep Ma. Aribau Cano

« previous php.general.es (#43646) next »