Public Method Details |
&DBCtrl |
public void &DBCtrl( string $dbname, string $host, string $user, string $passwd )
|
|
Set up a database connection or reuse an existing one.
|
Parameter |
|
string |
$dbname |
|
|
Name of the database to connect to. |
|
|
string |
$host |
|
|
Host which to connect. |
|
|
|
|
|
Returns |
void |
|
&select |
public object db_result &select( string $what )
|
|
Select a result set from database.
This function generates a query of the form"SELECT $what FROM $table WHERE $where $tail".
|
Parameter |
|
string |
$what |
|
|
Name of the database to connect to. |
|
Returns |
object db_result |
|
&update |
public object db_result &update( string $table, string $set, string $where )
|
|
Update rows in a table.
This function generates a query of the form"UPDATE $table SET $set WHERE $where".
|
Parameter |
|
string |
$table |
|
|
Table name. |
|
|
string |
$set |
|
|
Field set without SET clause. |
|
|
string |
$where |
|
|
WHERE clause without WHERE keyword. |
|
Returns |
object db_result |
|
&insert |
public object db_result &insert( string $table )
|
|
insert a new row.
This function generates a query of the form"UPDATE $table SET $set WHERE $where".
|
Parameter |
|
string |
$table |
|
|
Table name. |
|
Returns |
object db_result |
|
&delete |
public object db_result &delete( string $table, [ string $where ] )
|
|
Remove row(s) from a table.
This function generates a query of the form"DELETE FROM $table WHERE $where".
|
Parameter |
|
string |
$table |
|
|
Table name. |
|
|
string |
$where |
= >>''<< |
|
WHERE clause without WHERE keyword. |
|
Returns |
object db_result |
|
set_table_prefix |
public void set_table_prefix( string $prefix )
|
|
Set prefix for all table names used afterwards.
|
Parameter |
|
string |
$prefix |
|
|
Table name. |
|
Returns |
void |
|
table_prefix |
public string table_prefix( string $table )
|
|
Get table prefix used for all table names.
|
Parameter |
|
string |
$table |
|
|
Warning: documentation is missing. |
|
Returns |
string table Table name. |
|