Re: Can't get PHP PDO LOB working with PostgreSQL (WRONG CODE)

Поиск
Список
Период
Сортировка
От Chris
Тема Re: Can't get PHP PDO LOB working with PostgreSQL (WRONG CODE)
Дата
Msg-id 48DC5DB6.2070706@gmail.com
обсуждение исходный текст
Ответ на Can't get PHP PDO LOB working with PostgreSQL (WRONG CODE)  (Rico Secada <coolzone@it.dk>)
Список pgsql-php
> I don't know if the above is correct or if PostgreSQL has received the
> binary data correctly, maybe someone can confirm this for me please?

If it has an id, I suspect postgres got it just fine.

> $stmt = $pdo->prepare("SELECT blob_type, attachment FROM attachments
> WHERE id = :id LIMIT 1");
> $stmt->bindParam(':id', $_GET['id'], PDO::PARAM_STR);

See examples here:

http://au.php.net/manual/en/function.pdo-pgsqllobopen.php

about how to get it back.

--
Postgresql & php tutorials
http://www.designmagick.com/


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

Предыдущее
От: Andrew McMillan
Дата:
Сообщение: Re: Can't get PHP PDO LOB working with PostgreSQL (WRONG CODE)
Следующее
От: "A B"
Дата:
Сообщение: Unknown: Cannot set connection to blocking mode in Unknown on line 0