PHP
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

ibase_blob_cancel> <ibase_backup
Last updated: Sat, 24 Mar 2007

view this page in

ibase_blob_add

(PHP 4, PHP 5)

ibase_blob_add — Add data into a newly created blob

Description

void ibase_blob_add ( resource $blob_handle, string $data )

ibase_blob_add() adds data into a blob created with ibase_blob_create(). Returns NULL on success or FALSE on failure.

See also ibase_blob_cancel(), ibase_blob_close(), ibase_blob_create() and ibase_blob_import().



add a note add a note User Contributed Notes
ibase_blob_add
a dot w dot peters at ieee dot org
09-Dec-2004 07:48
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);
?>

ibase_blob_cancel> <ibase_backup
Last updated: Sat, 24 Mar 2007
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites