PHP Class SqlHelper, WebBasicCommonDemos

User: Administrator Date: 2016/1/15 0015 Time: 下午 4:29
Exibir arquivo Open project: huang303513/WebDevelopStudy Class Usage Examples

Public Properties

Property Type Description
$conn
$dbname
$host
$password
$username

Public Methods

Method Description
__construct ( )
close_connect ( ) 关闭连接的方法
exectue_dql_fenye ( $sql1, $sql2, $fenyePage ) $sql2="select count(id) from 表名"
execute_dml ( $sql ) 执行dml语句
execute_dql ( $sql ) 执行dql语句
execute_dql2 ( $sql ) 执行dql语句,但是返回的是一个数组

Method Details

__construct() public method

public __construct ( )

close_connect() public method

关闭连接的方法
public close_connect ( )

exectue_dql_fenye() public method

$sql2="select count(id) from 表名"
public exectue_dql_fenye ( $sql1, $sql2, $fenyePage )

execute_dml() public method

执行dml语句
public execute_dml ( $sql )

execute_dql() public method

执行dql语句
public execute_dql ( $sql )

execute_dql2() public method

执行dql语句,但是返回的是一个数组
public execute_dql2 ( $sql )

Property Details

$conn public_oe property

public $conn

$dbname public_oe property

public $dbname

$host public_oe property

public $host

$password public_oe property

public $password

$username public_oe property

public $username