View file base/Portfolio.php

File size: 780B
<? //by rine(Andrey Arapov) & BEPDuKT(Aleksey Ivanov) site: dizkod.ru

	/**
	 * CLASS PORTFOLIO
	 * Author given violin RAINE
	 * Participant of the group DECO
	 * E-mail: [email protected] OR [email protected]
	 * ICQ:9927785
	 */





 class Portfolio extends Base
{


 function __construct()
 {

 }

 public function edit($id,$name,$opis,$stat,$prace){


    if(mysql_query("UPDATE `prace` SET  `name`='$name',`opis`='$opis',`stat`='$stat', `prace`='$prace' WHERE `id`='$id'"))
   {
   Base::head();
   	echo "Данные успешно изменены!<br /><a href='/portfolio/'>Назад</a>";
     Base::foot();
     }else{
     	Base::head();
     	echo "Данные не изменены!";
        Base::foot();}


 }



}

?>