Re: files, php & pgsql

Поиск
Список
Период
Сортировка
От Dave Perkins
Тема Re: files, php & pgsql
Дата
Msg-id 3.0.6.32.20001018071750.007aa450@shell1.shore.net
обсуждение исходный текст
Ответ на files, php & pgsql  (Chris <tomcat@weirdness.com>)
Ответы Re: files, php & pgsql  (Chris <tomcat@weirdness.com>)
Список pgsql-php
Chris,

I ran a quick test and got the following error: "PostgresSQL query failed:
ERROR:  parser: parse error at or near "
"

If the following is how the code is actually formated:

>$sql = "insert into images (picnum, image) values
>(nextval('images_picnum_seq'), '$loid')";

it might be the source of the problem.

Putting the quoted string all on one line as in:

$sql = "insert into images (picnum, image) values
(nextval('images_picnum_seq'),'$loid')";

eliminates this error.

Hope this helps . . .

Cheers,
Dave


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

Предыдущее
От: Chris
Дата:
Сообщение: files, php & pgsql
Следующее
От: Chris
Дата:
Сообщение: Re: files, php & pgsql