Re: using mysql_escape_string with implode() !!
| From: | Richard Lynch | Date: | Wed, 30 May 2007 20:03:01 +0000 |
| Subject: | Re: using mysql_escape_string with implode() !! | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-255857@lists.php.net to get a copy of this message | ||
On Fri, May 25, 2007 10:32 am, Rahul Sitaram Johari wrote:
>
> Ave,
>
> I¹m inserting values out of an array into mySQL. There¹s other values
> besides the array values that are being inserted as well. This is my
> simple
> INSERT code:
array_map('mysql_real_escape_string', $var);
This assumes that you have exactly ONE MySQL connection open, or at
least that you have one open, and want to use that same connection
here.
--
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?