PHP: fbsql_read_clob - Manual in Deutsh
PHP: fbsql_read_clob - Manual in French
PHP: fbsql_read_clob - Manual in Polish

You Are At PHP: fbsql_read_clob - Manual Area


recent searches:
include functions , variable functions , post functions...




If you are new to PHP or just need to refresh your skills, this is the place to start. This series of tutorials will give you the basic knowledge you will need to create a simple PHP website.

PHP is a reflective programming language originally designed for producing dynamic web pages.[1] PHP is used mainly in server-side scripting, but can be used from a command line interface or in standalone graphical applications. Textual User Interfaces can also be created using ncurses.

PHP Manual
PrevNext

fbsql_read_clob

(PHP 4 >= 4.2.0, PHP 5)

fbsql_read_clob -- Read a CLOB from the database

Description

string fbsql_read_clob ( string clob_handle [, resource link_identifier] )

Reads CLOB data from the database.

If a select statement contains BLOB and/or CLOB columns FrontBase will return the data directly when data is fetched. This default behavior can be changed with fbsql_set_lob_mode() so the fetch functions will return handles to BLOB and CLOB data. If a handle is fetched a user must call fbsql_read_clob() to get the actual CLOB data from the database.

Parameters

clob_handle

A CLOB handle, returned by fbsql_create_clob().

link_identifier

A FrontBase link identifier returned by fbsql_connect() or fbsql_pconnect().

If optional and not specified, the function will try to find an open link to the FrontBase server and if no such link is found it will try to create one as if fbsql_connect() was called with no arguments

Return Values

Returns a string containing the specified CLOB data.

Examples

Example 1. fbsql_read_clob() example

<?php
$link
= fbsql_pconnect("localhost", "_SYSTEM", "secret")
    or die(
"Could not connect");
$sql = "SELECT CLOB_COLUMN FROM CLOB_TABLE;";
$rs = fbsql_query($sql, $link);
$row_data = fbsql_fetch_row($rs);
// $row_data[0] will now contain the clob data for the first row
fbsql_free_result($rs);

$rs = fbsql_query($sql, $link);
fbsql_set_lob_mode($rs, FBSQL_LOB_HANDLE);
$row_data = fbsql_fetch_row($rs);
// $row_data[0] will now contain a handle to the CLOB data in the first row
$clob_data = fbsql_read_clob($row_data[0]);
fbsql_free_result($rs);

?>

See Also

fbsql_create_clob()
fbsql_read_blob()
fbsql_set_lob_mode()

szkolenia zawodowe kursy zawodowe przygotowanie do zawodu
Crm dedykowany
najlepsza strona blogs o UKS profesjonalne wyniki
Skuteczne pozycjonowanie stron łódź i cała Polska.
przetargi Adamówka

Another Useful functions:


ref.fbsql | function.fbsql-warnings | function.fbsql-username | function.fbsql-tablename | function.fbsql-table-name | function.fbsql-stop-db | function.fbsql-start-db | function.fbsql-set-transaction | function.fbsql-set-password | function.fbsql-set-lob-mode | function.fbsql-set-characterset | function.fbsql-select-db | function.fbsql-rows-fetched | function.fbsql-rollback | function.fbsql-result | function.fbsql-read-clob | function.fbsql-read-blob | function.fbsql-query | function.fbsql-pconnect | function.fbsql-password | function.fbsql-num-rows | function.fbsql-num-fields | function.fbsql-next-result | function.fbsql-list-tables | function.fbsql-list-fields | function.fbsql-list-dbs | function.fbsql-insert-id | function.fbsql-hostname | function.fbsql-get-autostart-info | function.fbsql-free-result | function.fbsql-field-type | function.fbsql-field-table | function.fbsql-field-seek | function.fbsql-field-name | function.fbsql-field-len | function.fbsql-field-flags | function.fbsql-fetch-row | function.fbsql-fetch-object | function.fbsql-fetch-lengths | function.fbsql-fetch-field | function.fbsql-fetch-assoc | function.fbsql-fetch-array | function.fbsql-error | function.fbsql-errno | function.fbsql-drop-db | function.fbsql-db-status | function.fbsql-db-query | function.fbsql-database | function.fbsql-database-password | function.fbsql-data-seek | function.fbsql-create-db | function.fbsql-create-clob | function.fbsql-create-blob | function.fbsql-connect | function.fbsql-commit | function.fbsql-close | function.fbsql-clob-size | function.fbsql-change-user | function.fbsql-blob-size | function.fbsql-autocommit | function.fbsql-affected-rows |


PHP is a widely-used general-purpose scripting language that is especially suited for Web development and can be embedded into HTML. If you are new to PHP and want to get some idea of how it works, try the introductory tutorial. After that, check out the online manual, and the example archive sites and some of the other resources available in the links section.