(PHP 5, PHP 7 < 7.4.0)

ibase_blob_add Aggiunge dati in un nuovo blob creato


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

ibase_blob_add() aggiunge dati ad un blob creato con ibase_blob_create().

Vedere anche ibase_blob_cancel(), ibase_blob_close(), ibase_blob_create() e ibase_blob_import().

add a note add a note

User Contributed Notes 1 note

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

= 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