class constructor. does nothing.
closes a mysql-connection.
returns an error num as a negative number to distinguish it from an id (in the case of inserts)
int execute_getnextkey(
string
$sequence_table
)
|
|
treats a MySQL tabel as a sequence by inserting an empty row and getting the row id
Parameters:
int execute_statement(
string
$sql
)
|
|
executes a SQL statement that doesn't have a return value
Parameters:
int execute_statement_return_autokey(
string
$sql
)
|
|
runs a SQL statement for an INSERT and returns the ID of the row added
Parameters:
returns a database connection
void print_query(
string
$sql
)
|
|
prints a query, usefull for development/debugging.
Parameters:
array query(
string
$sql
)
|
|
runs an sql statement and returns a list of dictionary objects representing the resultset.
Parameters:
array query_retrieve_keyed_list(
string
$sql
)
|
|
Run a SQL statement and return a keyed dictionary representing the result set, with row 0 as the key, and row 1 as the value this is useful for retrieving an array to use for a SELECT box, e.g.
WARNING: additional rows are discarded and selection order matters
Parameters: