Re: DBD::Pg problem

Поиск
Список
Период
Сортировка
От Alex Satrapa
Тема Re: DBD::Pg problem
Дата
Msg-id 3FCDAD58.6060905@lintelsys.com.au
обсуждение исходный текст
Ответ на Re: DBD::Pg problem  ("Ausrack Webmaster" <webmaster@ausrack.com.au>)
Ответы Re: DBD::Pg problem
Список pgsql-general
Ausrack Webmaster wrote:
> The thing is...I am not. I am inserting it into a varchar field.

Are there any single quotes in the message body?  They will wreak havoc
with the rest of the query. And why are you putting single quotes around
'$parent'?

What happens if you move the '$body' to the end:

$sql="insert into it_contact (email, to_email,
subject,modify,parent,details) values(?,?,?,now(),$parent,'$body')";

Alex


В списке pgsql-general по дате отправления:

Предыдущее
От: Richard Huxton
Дата:
Сообщение: Re: Transaction Question
Следующее
От: Alvar Freude
Дата:
Сообщение: Re: Cast text to bytea