XCL Web Application Platform 2.5.0
The XoopsCube Legacy Project
|
Public Member Functions | |
connect ($selectdb=true) | |
genId ($sequence) | |
fetchRow ($result) | |
fetchArray ($result) | |
fetchBoth ($result) | |
getInsertId () | |
getRowsNum ($result) | |
getAffectedRows () | |
close () | |
freeRecordSet ($result) | |
error () | |
errno () | |
quoteString ($str) | |
& | queryF ($sql, $limit=0, $start=0) |
& | query ($sql, $limit=0, $start=0) |
queryFromFile ($file) | |
getFieldName ($result, $offset) | |
getFieldType ($result, $offset) | |
getFieldsNum ($result) | |
setCharset ($charset) | |
prepare ($query) | |
bind_param () | |
& | execute () |
& | executeF () |
Data Fields | |
$conn | |
$mPrepareQuery =null | |
Definition at line 24 of file mysqlidatabase.php.
bind_param | ( | ) |
Emulates bind_param(), but this is TEST API.
Definition at line 355 of file mysqlidatabase.php.
close | ( | ) |
Close MySQL connection
Definition at line 156 of file mysqlidatabase.php.
connect | ( | $selectdb = true | ) |
connect to the database
bool | $selectdb | select the database now? |
Definition at line 44 of file mysqlidatabase.php.
errno | ( | ) |
Returns the numerical value of the error message from previous MySQL operation
Definition at line 187 of file mysqlidatabase.php.
error | ( | ) |
Returns the text of the error message from previous MySQL operation
Definition at line 177 of file mysqlidatabase.php.
& execute | ( | ) |
Executes prepared SQL with query(), but this is TEST API.
Definition at line 397 of file mysqlidatabase.php.
& executeF | ( | ) |
Executes prepared SQL with queryF(), but this is TEST API.
Definition at line 408 of file mysqlidatabase.php.
fetchArray | ( | $result | ) |
Fetch a result row as an associative array
$result |
Definition at line 105 of file mysqlidatabase.php.
fetchBoth | ( | $result | ) |
Fetch a result row as an associative array
$result |
Definition at line 116 of file mysqlidatabase.php.
fetchRow | ( | $result | ) |
Get a result row as an enumerated array
mysqli_result | $result |
Definition at line 94 of file mysqlidatabase.php.
freeRecordSet | ( | $result | ) |
will free all memory associated with the result identifier result.
resource | query result |
Definition at line 167 of file mysqlidatabase.php.
genId | ( | $sequence | ) |
generate an ID for a new row
This is for compatibility only. Will always return 0, because MySQL supports autoincrement for primary keys.
string | $sequence | name of the sequence from which to get the next ID |
Definition at line 83 of file mysqlidatabase.php.
getAffectedRows | ( | ) |
getFieldName | ( | $result, | |
$offset ) |
Get field name
mysqli_result | $result | |
int | numerical field index |
Definition at line 283 of file mysqlidatabase.php.
getFieldsNum | ( | $result | ) |
Get number of fields in result
mysqli_result | $result |
Definition at line 314 of file mysqlidatabase.php.
getFieldType | ( | $result, | |
$offset ) |
Get field type
mysqli_result | $result | |
int | $offset | numerical field index |
Definition at line 299 of file mysqlidatabase.php.
getInsertId | ( | ) |
Get the ID generated from the previous INSERT operation
Definition at line 126 of file mysqlidatabase.php.
getRowsNum | ( | $result | ) |
Get number of rows in result
resource | query result |
Definition at line 137 of file mysqlidatabase.php.
prepare | ( | $query | ) |
Emulates prepare(), but this is TEST API.
$query |
Definition at line 335 of file mysqlidatabase.php.
& query | ( | $sql, | |
$limit = 0, | |||
$start = 0 ) |
perform a query
This method is empty and does nothing! It should therefore only be used if nothing is exactly what you want done! ;-)
string | $sql | a valid MySQL query |
int | $limit | number of records to return |
int | $start | offset of first record to return |
@abstract
Reimplemented in XoopsMysqliDatabaseProxy, and XoopsMysqliDatabaseSafe.
Definition at line 246 of file mysqlidatabase.php.
& queryF | ( | $sql, | |
$limit = 0, | |||
$start = 0 ) |
perform a query on the database
string | $sql | a valid MySQL query |
int | $limit | number of records to return |
int | $start | offset of first record to return |
Definition at line 213 of file mysqlidatabase.php.
queryFromFile | ( | $file | ) |
perform queries from SQL dump file in a batch
string | $file | file path to an SQL dump file |
Definition at line 257 of file mysqlidatabase.php.
quoteString | ( | $str | ) |
Returns escaped string text with single quotes around it to be safely stored in database
string | $str | unescaped string text |
Definition at line 198 of file mysqlidatabase.php.
setCharset | ( | $charset | ) |
Sets the default client character set
string | $charset | The charset to be set as default |
Definition at line 325 of file mysqlidatabase.php.
$conn |
Definition at line 30 of file mysqlidatabase.php.
$mPrepareQuery =null |
Definition at line 36 of file mysqlidatabase.php.