Recommended commonly used PHP function index_PHP tutorial

WBOY
Release: 2016-07-15 13:33:57
Original
1101 people have browsed it

★ Abs

Function: Get the absolute value.

Syntax: mixed abs (mixed number);

★ Acos

Function: Get the inverse cosine value

Syntax: float acos (float arg);

★ ada_afetch

Function: Get the return column of the database.

Syntax: int ada_afetch (int result_id, int rownumber, array result_array);

Description: Put the column data returned by the database into the array variable. The parameter result_id is the ID value returned by the database. The parameter rownumber is the specified column to obtain. The parameter result_array is the data array to obtain the column, usually preceded by the "&" symbol.

★ ada_autocommit

Function: Switch on the automatic update function.

Syntax: int ada_autocommit (int connection_id, int [OnOff]);

Description: This function is used to turn on or off the automatic update function. The parameter connection_id is the ID value of the database link. The default value of parameter OnOff is on, which means turning on the automatic update function. If you want to turn it off, set it to off.

★ ada_close

Function: Close the Adabas D link.

Syntax: void ada_close (int connection_id);

Description: This function is used to close the link with the Adabas D database. The parameter connection_id is the database connection code ID value.

★ ada_commit

Function: Change the Adabas D database.

Syntax: int ada_commit (int connection_id);

Description: If you set ada_autocommit() to automatically update the database, you do not need to use this function.

★ ada_connect

Function: Link to Adabas D database.

Syntax: int ada_connect (string dsn, string user, string password);

Description: The return value is the code ID value of the link. The parameter dsn is the data source name. The parameters user and password are the linked account and password respectively.

★ ada_exec

Function: Execute SQL instructions.

Syntax: int ada_exec (int connection_id, string query);

Description: The parameter connection_id is the Adabas D link code ID value. The parameter query is the command to be executed. The return value is the Result ID value.

★ ada_fetchrow

Function: Get a column returned by the database.

Syntax: int ada_fetchrow (int result_id, int [row_number]);

Description: The parameter result_id returns the ID value for Adabas D. The parameter rownumber is the specified column and can be omitted.

★ ada_fieldname

Function: Get the field name.

Syntax: string ada_fieldname (int result_id, int field_number);

Description: The parameter result_id returns the ID value for the Adabas D database. The parameter field_number is the specified field.

★ ada_fieldtype

Function: Get the field type.

Syntax: string ada_fieldtype (int result_id, int field_number);

★ ada_freeresult

Function: Release the memory used by the returned data.

Syntax: int ada_freeresult (int result_id);

Description: The parameter result_id is the ID value returned by Adabas D.

★ ada_numfields

Function: Get the number of fields.

Syntax: int ada_numfields (int result_id);

Description: The parameter result_id is the ID value returned by Adabas D. If an error occurs, -1 is returned.

★ ada_numrows

Function: Get the number of records returned by the query result.

Syntax: int ada_numrows (int result_id);

Description: The parameter result_id is the ID value returned by Adabas D. If an error occurs, -1 is returned.

★ ada_result

Function: Get the return result.

Syntax: string ada_result (int result_id, mixed field);

Description: The parameter result_id is the ID value returned by Adabas D. The parameter field can be of numeric type, representing the specified field number; it can also be of string type, representing the specified field name.

★ ada_resultall

Function: Return query results in HTML table form.

Syntax: int ada_resultall (int result_id, string [format]);

Description: The parameter result_id is the ID value returned by Adabas D. The format parameter is a special configuration value of the table and can be omitted.

★ ada_rollback

Function: Undo the current query operation.

Syntax: int ada_rollback (int connection_id);

Description: Return true if the operation is successful, otherwise return false.


www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/446018.htmlTechArticle★ Abs Function: Get the absolute value. Syntax: mixed abs (mixed number); ★ Acos function: get arc cosine value Syntax: float acos (float arg); ★ ada_afetch function: get number...
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template