Class multisql

Description

Located in /multisql.class.php (line 16)


	
			
Method Summary
multisql __construct (string $host, string $database, string $username, string $password, [string $type = 'mysql'], [int $port = 0])
void __destruct ()
int affected_rows ()
void close ()
void connect ()
bool connected ()
string convertsql (string $query)
string error ()
string escape_string (string $string)
array fetch_array ([string $type = 'BOTH'])
array fetch_assoc ()
object fetch_object ()
array fetch_row ()
bool free_result ()
string getdbtype ()
resource getresultset ()
int num_rows ()
bool query (string $query, [bool $convert = true])
bool select_db (string $database)
void setdebug (bool $state)
void setresultset (resource $resultset)
Methods
Constructor __construct (line 505)

Constructor

  • access: public
multisql __construct (string $host, string $database, string $username, string $password, [string $type = 'mysql'], [int $port = 0])
  • string $host
  • string $database
  • string $username
  • string $password
  • string $type
  • int $port
Destructor __destruct (line 535)

Destructor

  • access: public
void __destruct ()
affected_rows (line 955)

Get the number of rows affected by the last query.

  • access: public
int affected_rows ()
close (line 554)

Disconnect from the server.

  • access: public
void close ()
connect (line 544)

Connect to the server.

  • access: public
void connect ()
connected (line 788)

Check if the connection has been established.

  • access: public
bool connected ()
convertsql (line 566)

Convert a SQL-query.

  • access: public
string convertsql (string $query)
  • string $query
error (line 977)

Get the last error.

  • access: public
string error ()
escape_string (line 944)

Escape a string.

  • access: public
string escape_string (string $string)
  • string $string
fetch_array (line 910)

Fetch a row in an array.

  • access: public
array fetch_array ([string $type = 'BOTH'])
  • string $type
fetch_assoc (line 887)

Fetch a row in an associative array.

  • access: public
array fetch_assoc ()
fetch_object (line 921)

Fetch a row in an object.

  • access: public
object fetch_object ()
fetch_row (line 898)

Fetch a row in a numerical array.

  • access: public
array fetch_row ()
free_result (line 966)

Free the last result-set.

  • access: public
bool free_result ()
getdbtype (line 805)

Get the type of the database-server.

  • access: public
string getdbtype ()
getresultset (line 815)

Get the last result-set.

  • access: public
resource getresultset ()
num_rows (line 932)

Get the number of rows in the last result-set.

  • access: public
int num_rows ()
query (line 850)

Send a query.

  • access: public
bool query (string $query, [bool $convert = true])
  • string $query
  • bool $convert
select_db (line 836)

Select a database.

  • access: public
bool select_db (string $database)
  • string $database
setdebug (line 988)

Sets the state of the debugger.

  • access: public
void setdebug (bool $state)
  • bool $state
setresultset (line 825)

Set the last result-set.

  • access: public
void setresultset (resource $resultset)
  • resource $resultset

Documentation generated on Thu, 12 Mar 2009 16:30:23 +0800 by phpDocumentor 1.4.2