You probably have magic_quotes and magic_quotes_gpc set to "ON" in
your PHP.ini file.

Google "magic_quotes" and "magic_quotes_gpc".

On Aug 5, 2:56 am, jyrgen <[EMAIL PROTECTED]> wrote:
> hello,
>
> i'm having problem with slashes being added by cake when
> trying to find empty text columns in the DB
>
> this works fine: (in phpmyadmin)
>
> select * from articles where remark != ''
>
> it give all articles with "remark" not empty.
>
> but this
>
> $conditions['Article']['Article.remark'] = "!=''";
>
> is converted into
>
> select * from articles where fotohinweis != '\"\"'
>
> which gives *all* articles, because it searches for \"\"
>
> any ideas ?
>
> thanks, jyrgen


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to