PHP Класс ezSQL_mysqli

Наследование: extends ezSQL_Base
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$dbhost
$dbname
$dbpassword
$dbport
$dbuser
$encoding
$rows_affected

Открытые методы

Метод Описание
__construct ( $dbuser = '', $dbpassword = '', $dbname = '', $dbhost = 'localhost', $encoding = '' ) ******************************************************************** Constructor - allow the user to perform a quick connect at the same time as initialising the ezSQL_mysqli class
connect ( $dbuser = '', $dbpassword = '', $dbhost = 'localhost', $dbport = false ) ******************************************************************** Try to connect to mySQL database server
disconnect ( ) ******************************************************************** Close the active mySQLi connection
escape ( $str ) ******************************************************************** Format a mySQL string correctly for safe mySQL insert (no mater if magic quotes are on or not)
query ( $query ) ******************************************************************** Perform mySQL query and try to determine result value
quick_connect ( $dbuser = '', $dbpassword = '', $dbname = '', $dbhost = 'localhost', $dbport = '3306', $encoding = '' ) ******************************************************************** Short hand way to connect to mySQL database server and select a mySQL database at the same time
select ( $dbname = '', $encoding = '' ) ******************************************************************** Try to select a mySQL database
sysdate ( ) ******************************************************************** Return mySQL specific system date syntax i.e. Oracle: SYSDATE Mysql: NOW()

Описание методов

__construct() публичный Метод

******************************************************************** Constructor - allow the user to perform a quick connect at the same time as initialising the ezSQL_mysqli class
public __construct ( $dbuser = '', $dbpassword = '', $dbname = '', $dbhost = 'localhost', $encoding = '' )

connect() публичный Метод

******************************************************************** Try to connect to mySQL database server
public connect ( $dbuser = '', $dbpassword = '', $dbhost = 'localhost', $dbport = false )

disconnect() публичный Метод

******************************************************************** Close the active mySQLi connection
public disconnect ( )

escape() публичный Метод

******************************************************************** Format a mySQL string correctly for safe mySQL insert (no mater if magic quotes are on or not)
public escape ( $str )

query() публичный Метод

******************************************************************** Perform mySQL query and try to determine result value
public query ( $query )

quick_connect() публичный Метод

******************************************************************** Short hand way to connect to mySQL database server and select a mySQL database at the same time
public quick_connect ( $dbuser = '', $dbpassword = '', $dbname = '', $dbhost = 'localhost', $dbport = '3306', $encoding = '' )

select() публичный Метод

******************************************************************** Try to select a mySQL database
public select ( $dbname = '', $encoding = '' )

sysdate() публичный Метод

******************************************************************** Return mySQL specific system date syntax i.e. Oracle: SYSDATE Mysql: NOW()
public sysdate ( )

Описание свойств

$dbhost публичное свойство

public $dbhost

$dbname публичное свойство

public $dbname

$dbpassword публичное свойство

public $dbpassword

$dbport публичное свойство

public $dbport

$dbuser публичное свойство

public $dbuser

$encoding публичное свойство

public $encoding

$rows_affected публичное свойство

public $rows_affected