Re: Problema con " y '
| From: | Ivan Rodriguez | Date: | Mon, 21 Jun 2004 14:24:34 +0000 |
| Subject: | Re: Problema con " y ' | ||
| References: | 1 2 | Groups: | php.general.es |
| Request: | Send a blank email to general-es+get-49517@lists.php.net to get a copy of this message | ||
O mas facil aun :-)
ej. $query="INSERT INTO KKO_POSTS (postid, posttitle) VALUES
('','{$_POST[$titulo]}')";
----- Original Message -----
From: "Xavier Serna" <xserna@justedit.es>
To: "Victor Saldaña D." <vsaldana_listas@yahoo.es>; <php-es@lists.php.net>
Sent: Monday, June 21, 2004 4:12 PM
Subject: Re: [PHP-ES] Problema con " y '
> Es bien sencillo a mi modo de ver:
>
> ej. $query="INSERT INTO KKO_POSTS (postid, posttitle) VALUES
> ('','".$_POST["$titulo"]."')";
>
> saludos,
> Xavier
>
>
> ----- Original Message -----
> From: "Victor Saldaña D." <vsaldana_listas@yahoo.es>
> To: <php-es@lists.php.net>
> Sent: Monday, June 21, 2004 16:02
> Subject: [PHP-ES] Problema con " y '
>
>
> Hola amigos
>
> Mi consulta es la siguiente:
> ¿Cual es la forma correcta de abordar el uso de " y ' en las querys?
>
> ej. $query="INSERT INTO KKO_POSTS (postid, posttitle) VALUES
> ('','$titulo')";
>
> $titulo se obtiene de un POST y con algunas configuraciones funciona tal
> como
> esta, pero la idea es q diga $_POST["titulo"] o $_REQUEST["titulo"] pero
> aqui me
> aparece el problema con ".
>
> cual es el procedimiento mas recomendable para esto?
>
> salu2!
> --
> Victor Saldaña D.
> User #330054 counter.li.org
>
> --
> PHP Spanish Localization Talk Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
> --
> PHP Spanish Localization Talk Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>