YAP
2.5
|
Public Member Functions | |
CYap_mysql () | |
OpenDb ($DBSystem, $DBUser="", $DBPasswd="") | |
SelectDb ($DBname) | |
DbExecSql ($sql) | |
QueryLimit ($select, $start=0, $many=-1) | |
DbGetNumRow ($result) | |
DbGetNumFields ($result) | |
DbFetchField ($result, $FieldNo) | |
DbFieldFlags ($result, $FieldNo) | |
DbFreeResult ($result) | |
DbGetValue ($result) | |
Db_Close () | |
DbEscape ($value) | |
DbRegexCond ($FieldName, $pattern) | |
DbBetweenCond ($FieldName, $ValueFrom, $ValueTo, $ValueType) | |
![]() | |
CYapDB () | |
OpenDB ($Server, $User="", $Password="") | |
SelectDb ($DBname) | |
DbExecSql ($sql) | |
QueryLimit ($select, $start=0, $many=-1) | |
DbGetNumRow ($result) | |
DbGetNumFields ($result) | |
DbFetchField ($result, $FieldNo) | |
DbFieldFlags ($result, $FieldNo) | |
DbFreeResult ($result) | |
DbEscape ($value) | |
DbError () | |
DbaddSql ($row, $fieldsType, $KeyField) | |
DbmodifySql ($row, $fieldsType) | |
DbRegexCond ($FieldName, $pattern) | |
DbBetweenCond ($FieldName, $ValueFrom, $ValueTo, $ValueType) | |
Additional Inherited Members | |
![]() | |
$DbConn | |
$Db_Open | |
$txtError | |
$Dbresult | |
$CurrentRow | |
$LastQuery | |
Definition at line 38 of file CYap_Mysql.php.
CYap_mysql | ( | ) |
Definition at line 40 of file CYap_Mysql.php.
Db_Close | ( | ) |
Close the connection to the database
Definition at line 190 of file CYap_Mysql.php.
DbBetweenCond | ( | $FieldName, | |
$ValueFrom, | |||
$ValueTo, | |||
$ValueType | |||
) |
Build the condition statement for $FieldName using the 'between' expression
string | $FieldName | |
mixed | $ValueFrom | |
mixed | $ValueTo | |
string | $ValueType |
Definition at line 239 of file CYap_Mysql.php.
DbEscape | ( | $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
string | $value | sql statement |
Definition at line 209 of file CYap_Mysql.php.
DbExecSql | ( | $sql | ) |
Execute the given query
string | $sql | sql statement |
Definition at line 92 of file CYap_Mysql.php.
DbFetchField | ( | $result, | |
$FieldNo | |||
) |
Get column information from a result and return as an object
integer | $result | |
integer | $FieldNo |
Definition at line 147 of file CYap_Mysql.php.
DbFieldFlags | ( | $result, | |
$FieldNo | |||
) |
Get the flags associated with the specified field in a result
resource | $result | |
integer | $FieldNo |
Definition at line 157 of file CYap_Mysql.php.
DbFreeResult | ( | $result | ) |
Free the given result
integer | $result |
Definition at line 166 of file CYap_Mysql.php.
DbGetNumFields | ( | $result | ) |
Retrieve the number of fields retrieved by the given result
integer | $result |
Definition at line 136 of file CYap_Mysql.php.
DbGetNumRow | ( | $result | ) |
Retrieve the number of rows retrieved by the given result
integer | $result |
Definition at line 127 of file CYap_Mysql.php.
DbGetValue | ( | $result | ) |
Return the current row as associative array
resource | $result |
Definition at line 177 of file CYap_Mysql.php.
DbRegexCond | ( | $FieldName, | |
$pattern | |||
) |
Build the condition string for the $FieldName using the pattern matching syntax public
string | |
string |
Definition at line 226 of file CYap_Mysql.php.
OpenDb | ( | $DBSystem, | |
$DBUser = "" , |
|||
$DBPasswd = "" |
|||
) |
Open the database connection
string | $server | database server |
string | $User | username |
string | $Password | User password |
Definition at line 51 of file CYap_Mysql.php.
QueryLimit | ( | $select, | |
$start = 0 , |
|||
$many = -1 |
|||
) |
Perform a select statement using range to limits the rows to return
string | $select | select statement |
integer | $start | no. rows to start |
integer | $many | how many rows sholud be returned |
Definition at line 115 of file CYap_Mysql.php.
SelectDb | ( | $DBname | ) |
database selection
string | $DBname | database name |
Definition at line 72 of file CYap_Mysql.php.