text
stringlengths
1
254
output
stringlengths
2
255
Prev
この関数は、 現在のところ詳細な情報はありません。引数のリストのみが 記述されています。
(PHP 4 = 4.0.6)
(PHP 4 = 4.0.6)
If link_identifier isn 't specified, the last opened link is assumed.
fbsql_insert_id() returns the ID generated for an column defined as DEFAULT UNIQUE by the previous INSERT query using the given link_identifier. If link_identifier isn't specified, the last opened link is assumed.
If you need to save the value for later, be sure to call fbsql_insert_id() immediately after the query that generates the value.
fbsql_insert_id() returns 0 if the previous query does not generate an DEFAULT UNIQUE value. If you need to save the value for later, be sure to call fbsql_insert_id() immediately after the query that generates the value.
Prev
注意 The value of the FrontBase SQL function LAST_INSERT_ID() always contains the most recently generated DEFAULT UNIQUE value, and is not reset between queries.
(PHP 4 = 4.0.6)
(PHP 4 = 4.0.6)
Use the fbsql_tablename() function to traverse this result pointer.
fbsql_list_dbs() will return a result pointer containing the databases available from the current fbsql daemon. Use the fbsql_tablename() function to traverse this result pointer.
$link = fbsql_connect( 'localhost', 'myname', 'secret'); $db_list = fbsql_list_dbs($link); while ($row = fbsql_fetch_object($db_list)) {echo $row - Database. "\n";}
例 1 fbsql_list_dbs() の例
database1 database2 database3...
上の例の出力は以下のようになります。
Prev
注意 上記のコードは、 fbsql_fetch_row() または他の類 似の関数でも簡単に同じことが可能です。
A result pointer is returned which can be used with fbsql_field_flags(), fbsql_field_len(), fbsql_field_name(), and fbsql_field_type().
(PHP 4 = 4.0.6)
$link = fbsql_connect( 'localhost', 'myname', 'secret'); $fields = fbsql_list_fields("database1", "table1", $link); $columns = fbsql_num_fields($fields); for ($i = 0; $i $columns; $i++) {echo fbsql_field_name($fields, $i). "\n";;}
A result identifier is a positive integer. The function returns -1 if a error occurs. A string describing the error will be placed in $phperrmsg, and unless the function was called as @fbsql() then this error string will also be printed out.
field1 field2 field3...
例 1 fbsql_list_fields() の例
fbsql_list_tables
上の例の出力は以下のようになります。
(PHP 4 = 4.0.6)
(PHP 4 = 4.0.6)
The fbsql_tablename() function should be used to extract the actual table names from the result pointer.
fbsql_list_tables() takes a database name and returns a result pointer much like the fbsql_db_query() function. The fbsql_tablename() function should be used to extract the actual table names from the result pointer.
(PHP 4 = 4.0.6)
(PHP 4 = 4.0.6)
The function will return TRUE if an additional result set was available or FALSE otherwise.
例 1 fbsql_next_result() example
Prev
(PHP 4 = 4.0.6)
fbsql_num_fields() returns the number of fields in a result set.
fbsql_num_fields() returns the number of fields in a result set.
Prev
See also: fbsql_db_query(), fbsql_query(), fbsql_fetch_field(), fbsql_num_rows().
fbsql_num_rows() returns the number of rows in a result set.
(PHP 4 = 4.0.6)
To retrieve the number of rows returned from a INSERT, UPDATE or DELETE query, use fbsql_affected_rows().
fbsql_num_rows() returns the number of rows in a result set. This command is only valid for SELECT statements. To retrieve the number of rows returned from a INSERT, UPDATE or DELETE query, use fbsql_affected_rows().
Example 1. fbsql_num_rows() example
例 1 fbsql_num_rows() の例
Prev
fbsql_affected_rows(), fbsql_connect(), fbsql_select_db(), fbsql_query() も参照下さい。
Warning
(PHP 4 = 4.0.6)
Prev
この関数は、 現在のところ詳細な情報はありません。引数のリストのみが 記述されています。
(PHP 4 = 4.0.6)
(PHP 4 = 4.0.6)
A positive FrontBase persistent link identifier on success, or FALSE on error.
Returns: A positive FrontBase persistent link identifier on success, or FALSE on error.
The following defaults are assumed for missing optional parameters: host = 'localhost', username = "_SYSTEM "and password = empty password.
fbsql_pconnect() establishes a connection to a FrontBase server. The following defaults are assumed for missing optional parameters: host = 'localhost', username = "_SYSTEM" and password = empty password.
fbsql_pconnect() acts very much like fbsql_connect() with two major differences.
fbsql_pconnect() acts very much like fbsql_connect() with two major differences.
To set Frontbase server port number, use fbsql_select_db().
To set Frontbase server port number, use fbsql_select_db().
If one is found, an identifier for it will be returned instead of opening a new connection.
First, when connecting, the function would first try to find a (persistent) link that's already open with the same host, username and password. If one is found, an identifier for it will be returned instead of opening a new connection.
Instead, the link will remain open for future use.
Second, the connection to the SQL server will not be closed when the execution of the script ends. Instead, the link will remain open for future use.
Prev
This type of links is therefore called 'persistent'.
(PHP 4 = 4.0.6)
(PHP 4 = 4.0.6)
Note:
注意 The query string shall always end with a semicolon.
It is perfectly possible for a query to succeed but affect no rows or return no rows.
The following query is syntactically invalid, so fbsql_query() fails and returns FALSE:
Example 1. fbsql_query() example
例 1 fbsql_query() の例
The following query is semantically invalid if my_col is not a column in the table my_tbl, so fbsql_query() fails and returns FALSE:
The following query is semantically invalid if my_col is not a column in the table my_tbl, so fbsql_query() fails and returns FALSE:
Example 2. fbsql_query() example
例 2 fbsql_query() の例
fbsql_query() will also fail and return FALSE if you don't have permission to access the table(s) referenced by the query.
fbsql_query() will also fail and return FALSE if you don't have permission to access the table(s) referenced by the query.
For SELECT statements, fbsql_query() returns a new result identifier that you can pass to fbsql_result().
Assuming the query succeeds, you can call fbsql_num_rows() to find out how many rows were returned for a SELECT statment or fbsql_affected_rows() to find out how many rows were affected by a DELETE, INSERT, REPLACE, or UPDATE statement.
Prev
See also: fbsql_affected_rows(), fbsql_db_query(), fbsql_free_result(), fbsql_result(), fbsql_select_db(), and fbsql_connect().
Returns:
(PHP 4 = 4.2.0)
fbsql_read_blob() reads BLOB data from the database.
返り値: blob_handleで指定したBLOBを含む文字列。
Example 1. fbsql_read_blob() example
例 1 fbsql_read_blob() の例
Prev
fbsql_create_blob(), fbsql_read_blob(), fbsql_read_clob(), fbsql_set_lob_mode() も参照下さい。
Returns:
(PHP 4 = 4.2.0)
fbsql_read_clob() reads CLOB data from the database.
返り値: clob_handleにより指定したCLOBを含む文字列。
Example 1. fbsql_read_clob() example
例 1 fbsql_read_clob() の例
Prev
fbsql_create_blob(), fbsql_read_blob(), fbsql_read_clob(), fbsql_set_lob_mode() も参照下さい。
fbsql_result() returns the contents of one cell from a FrontBase result set.
(PHP 4 = 4.0.6)
Calls to fbsql_result() should not be mixed with calls to other functions that deal with the result set.
Calls to fbsql_result() should not be mixed with calls to other functions that deal with the result set.
Prev
推奨される高性能な代替関数: fbsql_fetch_row(), fbsql_fetch_array(), fbsql_fetch_object()
Prev
(PHP 4 = 4.0.6)
Returns TRUE on success or FALSE on failure.
Returns: TRUE on success, FALSE on failure.
This command is only needed if autocommit is set to false.
fbsql_rollback() ends the current transaction by rolling back all statements issued since last commit. This command is only needed if autocommit is set to false.
Prev
See also: fbsql_autocommit() and fbsql_commit()
TRUE on success, FALSE on error.
(PHP 4 = 4.0.6)
If no link identifier is specified, the last opened link is assumed.
Returns: TRUE on success, FALSE on error.
if the database is protected with a database password, the user must call fbsql_database_password() before selecting the database.
Every subsequent call to fbsql_query() will be made on the active database.
Prev
See also: fbsql_connect(), fbsql_pconnect(), and fbsql_query().
TRUE on success, FALSE on error.
(PHP 4 = 4.2.0)
When BLOB and CLOB data is stored in FrontBase it can be stored direct or indirect.
返り値: 成功時に TRUE on success、エラー時に FALSE 。
See also: fbsql_create_blob(), fbsql_create_clob(), fbsql_read_blob(), and fbsql_read_clob().
fbsql_create_blob(), fbsql_create_clob(), fbsql_read_blob(), fbsql_read_clob() も参照下さい。
Warning
(PHP 4 = 4.2.0)
Prev
この関数は、 現在のところ詳細な情報はありません。引数のリストのみが 記述されています。
Returns TRUE on success or FALSE on failure.
(PHP 4 = 4.0.6)
See also: fbsql_db_status() and fbsql_stop_db().
Returns: TRUE on success, FALSE on failure.
Home
fbsql_start_db()
fbsql_set_transaction
See also: fbsql_db_status() and fbsql_stop_db().
Prev
(PHP 4 = 4.0.6)
(PHP 4 = 4.0.6)
Returns: TRUE on success, FALSE on failure.
fbsql_stop_db()
fbsql_stop_db()
Prev
fbsql_db_status() および fbsql_start_db() も参照下さい。
(PHP 4 = 4.2.0)
(PHP 4 = 4.2.0)
The fbsql_num_rows() function may be used to determine the number of tables in the result pointer.
fbsql_tablename() takes a result pointer returned by the fbsql_list_tables() function as well as an integer index and returns the name of a table. The fbsql_num_rows() function may be used to determine the number of tables in the result pointer.
fbsql_stop_db
例 1 fbsql_tablename() の例
Warning
(PHP 4 = 4.0.6)
Prev
この関数は、 現在のところ詳細な情報はありません。引数のリストのみが 記述されています。
Prev
(PHP 4 = 4.0.6)
Returns TRUE if warnings is turned on otherwise FALSE.
警告をオンにした場合は、 TRUE 、そうでない 場合は FALSE を返します。
Prev
fbsql_warnings() は、FrontBaseの警告を有効または 無効にします。
(PHP 3, PHP 4)
(PHP 3, PHP 4)
Returns TRUE on success or FALSE on failure.
fp が指しているファイルがクローズされます。
Example 1.
成功すると TRUE 、そうでなければ FALSE を返します。
?php $handle = fopen( 'somefile.txt', 'r'); fclose($handle);?
ファイルポインタは有効なものでなければならず、また fopen() または fsockopen() で正常にオープンされたファイルを指している必要があります。
(PHP 4 = 4.3.0)
(PHP 4 = 4.3.0)
It is strongly suggested to use '\r' for linebreaks within script_code.
Adds a script to the FDF, which Acrobat then adds to the doc-level scripts of a document, once the FDF is imported into it. It is strongly suggested to use '\r' for linebreaks within script_code.
?php $fdf = fdf_create(); fdf_add_doc_javascript($fdf, "PlusOne", "function PlusOne(x)\r{\r return x+1;\r}\r"); fdf_save($fdf);?
例 1Adding JavaScript code to a FDF
%FDF-1.2 %âãÏÓ 1 0 obj / FDF / JavaScript / Doc [(PlusOne)(function PlusOne\(x\)\r{\r return x+1;\r}\r)] endobj trailer / Root 1 0 R %%EOF
will create a FDF like this:
Warning
(PHP 3 = 3.0.13, PHP 4)
Prev
この関数は、 現在のところ詳細な情報はありません。引数のリストのみが 記述されています。
Prev
(PHP 3 = 3.0.6, PHP 4)
The fdf_close() function closes the FDF document.
fdf_close() 関数はFDFドキュメントを 閉じます。
Prev
fdf_open() も参照下さい。
(PHP 3 = 3.0.6, PHP 4)
(PHP 3 = 3.0.6, PHP 4)
This function is needed if one would like to populate input fields in a PDF document with data.
fdf_create() は新規FDFドキュメント を作成します。この関数は、データを有する PDFドキュメントの入力フィー ルドを公開したい場合に必要です。
Populating a PDF document
例 1PDF ドキュメントを公開する