Re: ODBC problem
| From: | Stas Trefilov | Date: | Thu, 15 Jun 2000 13:20:58 +0000 |
| Subject: | Re: ODBC problem | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-474@lists.php.net to get a copy of this message | ||
> This works fine till one of my fields contain a value like
>
> $username = D'hooghe
>
> The problem is the <'> in the value. Anyone got a nice solution howto make
> this works and make the ODBC succeed.
>
Maybe
str_replace ("'", "''", $username);
--
Stas Trefilov
Moscow Russia