db_affected_rows [line 170]
db_connect [line 19]
Connect to the database server and select the database.
Parameters:
|
bool |
$noerrmsg: |
set to false to omit error messages |
|
|
$errorstop: |
|
API Tags:
| Return: | if successful connection |
Information Tags:
true db_connect(
[ $errorstop = true], bool $noerrmsg
)
|
|
db_create_table [line 263]
Parameters:
void db_create_table(
&$sql
)
|
|
db_fetch_assoc [line 153]
Parameters:
void db_fetch_assoc(
$resource
)
|
|
db_fetch_row [line 177]
Parameters:
void db_fetch_row(
$result
)
|
|
db_getSQLmode [line 249]
Queries the SQL session mode
db_list_fields [line 286]
Parameters:
void db_list_fields(
$table, [ $raw = false]
)
|
|
db_num_rows [line 187]
Parameters:
void db_num_rows(
$result
)
|
|
db_permissions [line 221]
Returns user's permissions on the database
db_quote [line 131]
mysql_real_escape_string standin that insures the DB connection is passed.
Parameters:
string db_quote(
string $string
)
|
|
db_result [line 146]
Parameters:
void db_result(
$result, $row, [ $field = 0]
)
|
|
db_setSQLmode [line 242]
Sets the SQL session mode to empty
db_show [line 271]
Parameters:
void db_show(
$what, [ $aux = '']
)
|
|
db_table_update [line 267]
Parameters:
void db_table_update(
&$sql
)
|
|
db_truncate_table [line 299]
Parameters:
void db_truncate_table(
$table
)
|
|
query [line 64]
The main query function. Runs the SQL on the connection and handles errors.
Parameters:
|
string |
$sql: |
sql code |
|
bool |
$noerrmsg: |
set to false to supress the error message |
|
|
$errorstop: |
|
API Tags:
| Return: | of the sql statements |
Information Tags:
results query(
string $sql, [ $errorstop = true], bool $noerrmsg
)
|
|
query_full_array [line 106]
Runs a SQL query and returns an array of associative arrays of every row returned.
Parameters:
|
string |
$sql: |
sql code |
|
bool |
$errorstop: |
set to false to supress the error message |
|
string |
$key: |
optional array index key |
API Tags:
| Return: | of the sql statements |
Information Tags:
results query_full_array(
string $sql, [bool $errorstop = true], [string $key = NULL]
)
|
|
query_single_row [line 89]
Runs a SQL query and returns an associative array of the first row.
Doesn't handle multiple rows, so this should only be used for unique entries.
Parameters:
|
string |
$sql: |
sql code |
|
bool |
$errorstop: |
set to false to supress the error message |
API Tags:
| Return: | of the sql statements |
Information Tags:
results query_single_row(
string $sql, [bool $errorstop = true]
)
|
|