reference/pdo/lobs.xml
eae19eb5fe0f5bebcbce382ea7a505cedeb5a883
...
...
@@ -10,8 +10,8 @@
10
10
"large". Large objects can be either textual or binary in nature. PDO
11
11
allows you to work with this large data type by using the
12
12
<constant>PDO::PARAM_LOB</constant>
13
-
type code in your <function>PDOStatement::bindParam</function> or
14
-
<function>PDOStatement::bindColumn</function> calls.
13
+
type code in your <methodname>PDOStatement::bindParam</methodname> or
14
+
<methodname>PDOStatement::bindColumn</methodname> calls.
15
15
<constant>PDO::PARAM_LOB</constant> tells
16
16
PDO to map the data as a stream, so that you can manipulate it using the
17
17
<link linkend="ref.stream">PHP Streams API</link>.
...
...
@@ -102,9 +102,9 @@ $stmt->bindParam(1, $id);
102
102
$stmt->bindParam(2, $_FILES['file']['type']);
103
103
$stmt->bindParam(3, $fp, PDO::PARAM_LOB);
104
104

105
-
$stmt->beginTransaction();
105
+
$db->beginTransaction();
106
106
$stmt->execute();
107
-
$stmt->commit();
107
+
$db->commit();
108
108
?>
109
109
]]>
110
110
</programlisting>
111
111