Paul Sharpe wrote:
>
> OK......I've starting to learn a little about the way PHP
> handles the apostrophe. Before importing the database into
> DaDaBik, I added a \ before each '
>
> This can be done easily by using the "search and replace"
> feature found in most text editors/word processors.
>
> EXAMPLE: O'Brien became O\'Brien
>
> I then used .htaccess to set the php.ini file as follows:
>
> php_flag magic_quotes_sybase Off
> php_flag magic_quotes_runtime Off
> php_flag magic_quotes_gpc On
The settings are ok.
With these settings (which are the default) you don't need to escape or replace anything, everything is already handled by PHP. So you can safety insert value containing quote (').
Eugenio.
(Latest version of DaDaBIK when this message was posted: 2.2.1)
>
> I imported the database into DaDaBik and PHP took care of the
> rest.
>
> O\'Brien becomes O'Brien and my problem is fixed! All data
> displayed in DaDaBik is formatted correctly. I can now
> import, insert and search data that contains an apostrophe.
>
> Hope this info can help someone else.