| От | brian |
|---|---|
| Тема | Re: postgresql in PHP |
| Дата | |
| Msg-id | 4726A234.5000802@zijn-digital.com обсуждение |
| Ответ на | postgresql in PHP (davidrboyer@gmail.com) |
| Список | pgsql-general |
davidrboyer@gmail.com wrote: > When I try to add or update a postgresql field from php, even though I > escape it, when I > try to include a single quote in a varchar field, the result is the > quote and everything following > is missing after being INSERTed or UPDATEd. Anybody have any ideas > what is going on? > Thanks in advance! What is the setting for magic_quotes_gpc in your php.ini? hint: get_magic_quotes_gpc() will return TRUE if this is enabled, so you can use stripslashes() where necessary. Are you using a database wrapper (eg. PEAR MDB2) or the pg_whatever() functions? If the former, are you using a prepared statement? brian
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера