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