Re: error en sentencia
| From: | Pablo E. Siciliano | Date: | Mon, 21 Apr 2003 17:51:53 +0000 |
| Subject: | Re: error en sentencia | ||
| References: | 1 | Groups: | php.general.es |
| Request: | Send a blank email to general-es+get-35328@lists.php.net to get a copy of this message | ||
La mas facil me parece hacer:
$sql = "select infonroip,infodesc,infoemail,infogrup,infoarea from datosred
where infogere = '$selgerencia' order by infonroi$";
----- Original Message -----
From: "Miguel Obando L." <miguel.obando@essalud.gob.pe>
To: "Lista PHP" <lista@phpes.com>
Sent: Monday, April 21, 2003 2:34 PM
Subject: [PHP-ES] error en sentencia
> Hola
>
> Tengo un problema con un select quiero anadirle las comillas a la variable
> pero no se como ponerselas
> $sql = "select infonroip,infodesc,infoemail,infogrup,infoarea from
datosred where infogere = \"".$selgerencia\"." order by infonroi$
>
> --
> Slds.
>
> GNU/LINUX & Free Software
> Menosprecian a Unix/Linux quienes ignoran su poder
> -------------------------------------------------
> -?) /* Miguel Obando L.
> /\\ /* Dpto. de Sistemas - EsSALUD Arequipa
> _\\V /* Fono +51 54 34-5391
> -------------------------------------------------
> Messenger : m_obandol@hotmail.com
> http://www.e-conex.tk
>
>
> ---------------------------------------------------------------------
> Archivo On-line: http://www.phpes.com/
> via news: news://news.phpes.com/
> Manual PHP en español: http://www.php.net/manual/es/
> Para dar de baja la suscripción, mande un mensaje a:
> lista-unsubscribe@phpes.com
>
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.470 / Virus Database: 268 - Release Date: 08/04/03