| DB |
| [ class tree: DB ] [ index: DB ] [ all elements ] |
|
Packages: DB Classes:
DB
Files:DB_common DB_dbase DB_Error DB_fbsql DB_ibase DB_ifx DB_msql DB_mssql DB_mysql DB_mysqli DB_oci8 DB_odbc DB_pgsql DB_result DB_row DB_sqlite DB_storage DB_sybase
common.php
connect.inc DB.php dbase.php errors.inc fbsql.php fetchmodes.inc fetchmode_object.inc ibase.php ifx.php include.inc limit.inc mktable.inc msql.php mssql.php multiconnect.php mysql.php mysqli.php numcols.inc numrows.inc oci8.php odbc.php pgsql.php prepexe.inc sequences.inc simplequery.inc skipif.inc skipif.inc sqlite.php storage.php sybase.php transactions.inc |
[ Top ] $features = array(
|
| Type: | array |
[line 62]
The DB driver type (mysql, oci8, odbc, etc.)| Type: | string |
|
|
Don't call this method directly. Use DB::connect() instead.
Example of how to connect:
| array | $dsn | — | the data source name |
| bool | $persistent | — | should the connection be persistent? |
|
Also creates a new table to associate the sequence with. Uses a separate table to ensure portability with other drivers.
| string | $seq_name | — | name of the new sequence |
|
|
| string | $seq_name | — | name of the sequence to be deleted |
|
| string | $errormsg | — | the error message returned from the database |
|
|
| string | $str | — | the string to be escaped |
|
Formating of the array and the data therein are configurable. See DB_result::fetchInto() for more information.
This method is not meant to be called directly. Use DB_result::fetchInto() instead. It can't be declared "protected" because DB_result is a separate object.
PHP's mSQL extension did weird things with NULL values prior to PHP 4.3.11 and 5.0.4. Make sure your version of PHP meets or exceeds those versions.
| resource | $result | — | the query result resource |
| array | $arr | — | the referenced array to put the data in |
| int | $fetchmode | — | how the resulting array should be indexed |
| int | $rownum | — | the row number to fetch (0 = first row) |
| &$arr | — |
|
This method is not meant to be called directly. Use DB_result::free() instead. It can't be declared "protected" because DB_result is a separate object.
| resource | $result | — | PHP's query result resource |
|
| string | $type | — | the kind of objects you want to retrieve |
|
| int | $errno | — | if the error is being manually raised pass a DB_ERROR* constant here. If this isn't passed the error information gathered from the DBMS. |
|
| string | $seq_name | — | name of the sequence |
| boolean | $ondemand | — | when true, the seqence is automatically created if it does not exist |
|
| a | $result | — | valid fbsql result resource |
|
This method is not meant to be called directly. Use DB_result::numCols() instead. It can't be declared "protected" because DB_result is a separate object.
| resource | $result | — | PHP's query result resource |
|
This method is not meant to be called directly. Use DB_result::numRows() instead. It can't be declared "protected" because DB_result is a separate object.
| resource | $result | — | PHP's query result resource |
|
| string | $str | — | the identifier name to be quoted |
|
| string | $query | — | the SQL query string |
|
| object|string | $result | — | DB_result object from a query or a string containing the name of a table. While this also accepts a query result resource identifier, this behavior is deprecated. |
| int | $mode | — | a valid tableInfo mode |