PHP 5.4.31 Released

ibase_blob_add

(PHP 5)

ibase_blob_addAdd data into a newly created blob

Descrierea

void ibase_blob_add ( resource $blob_handle , string $data )

ibase_blob_add() adds data into a blob created with ibase_blob_create().

Parametri

blob_handle

A blob handle opened with ibase_blob_create().

data

The data to be added.

Valorile întoarse

Nu este întoarsă nici o valoare.

Vedeți de asemenea

add a note add a note

User Contributed Notes 1 note

up
-1
a dot w dot peters at ieee dot org
9 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