PHP 8.3.4 Released!

ibase_blob_add

(PHP 5, PHP 7 < 7.4.0)

ibase_blob_addFügt Daten in ein neues BLOB ein

Beschreibung

ibase_blob_add(resource $blob_handle, string $data): void

ibase_blob_add() fügt Daten zu einem mittels ibase_blob_create() erstellten BLOB hinzu.

Parameter-Liste

blob_handle

Ein BLOB-Handle, das mit ibase_blob_create() geöffnet wurde.

data

Die einzufügenden Daten

Rückgabewerte

Es wird kein Wert zurückgegeben.

Siehe auch

add a note

User Contributed Notes 1 note

up
0
a dot w dot peters at ieee dot org
19 years ago
To actually insert the BLOB into a table, the following snippet of code shows how this can be done.

<?php
$dbh
= ibase_connect($host, $user, $pass);

$blh = ibase_blob_create($dbh);
ibase_blob_add($blh, $data);
$blobid = ibase_blob_close($blh);

$sql = "INSERT INTO blobtable(blobfield) VALUES (?)";
$sth = ibase_query($dbh, $sql, $blobid);
?>
To Top