note 90004 modified in pdo.lobs by danbrown

From: Date: Wed, 01 Apr 2009 17:52:30 +0000
Subject: note 90004 modified in pdo.lobs by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-152712@lists.php.net to get a copy of this message
PDOStatement's methods bindParam and bindValue also work with strings, as in: <?php $data = file_get_contents($filename); $stmt->bindValue(1, $data, PDO::PARAM_LOB); //... ?> This was the only way I could make it work with PostgreSQL. --was-- PDOStatement's methods bindParam and bindValue also work with strings, as in: $data = file_get_contents($filename); $stmt->bindValue(1, $data, PDO::PARAM_LOB); ... This was the only way I could make it work with PostgreSQL. http://php.net/manual/en/pdo.lobs.php

« previous php.notes (#152712) next »