
<?php
class ProgramaEnt{
	private $idprograma,$programa;
	public function setIdprograma($val){$this->idprograma=$val;} public function getIdprograma(){return $this->idprograma;}
	public function setPrograma($val){$this->programa=$val;} public function getPrograma(){return $this->programa;}
}
class ProgramaMod{
	public function registrarPrograma($val){
		$sql="insert into programa(idprograma,programa) values('".$val->getIdprograma()."','".$val->getPrograma()."');";
		$query=mysqli_query(ConexionMod::Conectar(),$sql) or die("Error de registro");
		mysqli_close(ConexionMod::Conectar());
	}
}
?>