TimkiemSOSD/adminTest/model/user_model.php
//cac phuong thuc tuong tac bang tbluser
cac phuong thuc tuong tac bang tbluser
cac phuong thuc tuong tac bang tbluser
public static function insert($uname,$upass,$uright){
			$con = DB::getConnection();
			$sql = "INSERT INTO tbluser (uname,upassword,uright) VALUES(?,?,?)";
			try{
				$pst = $con->prepare($sql);
				$pst->bindValue(1,$uname);
				$pst->bindValue(2,$upass);
				$pst->bindValue(3,$uright);
				$pst->execute();
			}
			catch(PDOException $e){
				echo $e->getMessage();
			}
		}
public static function insert ( $ uname , $ upass , $ uright ) { $ con = DB :: getConnection ( ) ; $ sql = " INSERT INTO tbluser (uname,upassword,uright) VALUES(?,?,?) " ; try { $ pst = $ con -> prepare ( $ sql ) ; $ pst -> bindValue ( 1 , $ uname ) ; $ pst -> bindValue ( 2 , $ upass ) ; $ pst -> bindValue ( 3 , $ uright ) ; $ pst -> execute ( ) ; } catch ( PDOException $ e ) { echo $ e -> getMessage ( ) ; } }
cac phuong thuc tuong tac bang tbluser
cac phuong thuc tuong tac bang tbluser