Re: OT(MySQL) Consulta a BBDD>>problemas.

From: Date: Tue, 12 Aug 2003 18:30:49 +0000
Subject: Re: OT(MySQL) Consulta a BBDD>>problemas.
References: 1  Groups: php.general.es 
Request: Send a blank email to general-es+get-39307@lists.php.net to get a copy of this message
Puedes condicionar tu SELECT así: $sql = "SELECT * FROM coches "; $sql .="WHERE 1 "; if ($color != 'Todos') $sql .= "AND color = '$color' "; Att. JuanCaBo

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