string DbEscape(
string
$value
)
|
|
Escape the string using the db functions, if provided It don't apply the escape string if magic_quotes_gpc is enabled Mysql version. It uses the mysql_escape string function instead of addslashes
Parameters:
|
string |
$value: |
sql statement |
API Tags:
| Return: | the escaped string |
Redefinition of:
- CYapDB::DbEscape()
- Escape the string using the db functions, if provided It don't apply the escape string if magic_quotes_gpc is enabled
mixed DbExecSql(
string
$sql
)
|
|
Execute the given query
Parameters:
|
string |
$sql: |
sql statement |
API Tags:
| Return: | the result id, false on failure |
Redefinition of:
- CYapDB::DbExecSql()
- Execute the given query
Get column information from a result and return as an object
Parameters:
|
integer |
$result: |
|
|
integer |
$FieldNo: |
|
Redefinition of:
- CYapDB::DbFetchField()
- Get column information from a result and return as an object
string DbFieldFlags(
resource
$result, integer
$FieldNo
)
|
|
Get the flags associated with the specified field in a result
Parameters:
|
resource |
$result: |
|
|
integer |
$FieldNo: |
|
Redefinition of:
- CYapDB::DbFieldFlags()
- Get the flags associated with the specified field in a result
bool DbFreeResult(
integer
$result
)
|
|
Free the given result
Parameters:
API Tags:
| Return: | true on success, false on failure |
Redefinition of:
- CYapDB::DbFreeResult()
- Free the given result
integer DbGetNumFields(
integer
$result
)
|
|
Retrieve the number of fields retrieved by the given result
Parameters:
Redefinition of:
- CYapDB::DbGetNumFields()
- Retrieve the number of fields retrieved by the given result
integer DbGetNumRow(
integer
$result
)
|
|
Retrieve the number of rows retrieved by the given result
Parameters:
Redefinition of:
- CYapDB::DbGetNumRow()
- Retrieve the number of rows retrieved by the given result
array DbGetValue(
resource
$result
)
|
|
Return the current row as associative array
Parameters:
API Tags:
| Return: | row data or false on failure |
string DbRegexCond(
string
$FieldName, string
$pattern
)
|
|
Build the condition string for the $FieldName using the pattern matching
syntax
Parameters:
|
string |
$FieldName: |
|
|
string |
$pattern: |
|
API Tags:
Redefinition of:
- CYapDB::DbRegexCond()
- Build the condition string for the $FieldName using the pattern matching
Close the connection to the database
API Tags:
bool OpenDb(
mixed
$DBSystem, [mixed
$DBUser = ""], [mixed
$DBPasswd = ""], string
$server, string
$User, string
$Password
)
|
|
Open the database connection
Parameters:
|
string |
$server: |
database server |
|
string |
$User: |
username |
|
string |
$Password: |
User password |
API Tags:
| Return: | true on success, false on failure |
bool QueryLimit(
string
$select, [integer
$start = 0], [integer
$many = -1]
)
|
|
Perform a select statement using range to limits the
rows to return
Parameters:
|
string |
$select: |
select statement |
|
integer |
$start: |
no. rows to start |
|
integer |
$many: |
how many rows sholud be returned |
API Tags:
| Return: | true on success, false on failure |
Redefinition of:
- CYapDB::QueryLimit()
- Perform a select statement using range to limits the
bool SelectDb(
string
$DBname
)
|
|
database selection
Parameters:
|
string |
$DBname: |
database name |
API Tags:
| Return: | true on success, false on failure |
Redefinition of:
- CYapDB::SelectDb()