PHP 클래스 ezSQL_mysqli

상속: extends ezSQL_Base
파일 보기 프로젝트 열기: jv2222/ezsql 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$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