Re: mysql - image storing
| From: | Jason Wong | Date: | Tue, 18 Jan 2005 16:41:31 +0000 |
| Subject: | Re: mysql - image storing | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-38202@lists.php.net to get a copy of this message | ||
On Tuesday 18 January 2005 19:30, mel list_php wrote:
[snip]
> $donnees=stripslashes($row[donnees_binaires]);
[snip]
> -I tried different combinations with addslashes/stripslashes, trim in case
> of spaces, mysql_real_escape_string...
I haven't looked at your code in detail but stripslashes() should never be
used on data retrieved from the DB (that is assuming your data was inserted
correctly in the first place).
--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-db
------------------------------------------
New Year Resolution: Ignore top posted posts