Class SaeMysql
Sae Mysql Class
<?php $mysql = new SaeMysql(); $sql = "SELECT * FROM `user` LIMIT 10"; $data = $mysql->getData( $sql ); $name = strip_tags( $_REQUEST['name'] ); $age = intval( $_REQUEST['age'] ); $sql = "INSERT INTO `user` ( `name` , `age` , `regtime` ) VALUES ( '" . $mysql->escape( $name ) . "' , '" . intval( $age ) . "' , NOW() ) "; $mysql->runSql( $sql ); if( $mysql->errno() != 0 ) { die( "Error:" . $mysql->errmsg() ); } $mysql->closeDb(); ?>
- SaeObject
- SaeMysql
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
mysqli_result|boolean
|
|
public
array
|
|
public
array
|
|
public
mixxed
|
|
public
integer
|
|
public
integer
|
|
public
boolean
|
|
public
string
|
|
public
integer
|
|
public
string
|
|
public
string
|