$f=new Formgen(); $get=new Getvars(); $get->requireVar('view'); $get->assignVar('back'); $get->assignVar('forward'); $get->assignVar('site'); $get->assignVar('type'); /**sortieren ***/ $get->assignVar('order'); $get->assignVar('order_by'); /**sortieren ***/ if($get->validateVars()){ $e= new pExploit(); $e->dbh($dbh); $n=$e->mysqlCountByCategory($get->view()); //anpassen //-----lsExploits-------------------------------------------------------------------------------------------------------------------------------------------------------------- $e= new pExploit(); $e->dbh($dbh); $c=new pCategory(); $c->dbh($dbh); $c->mysqlSelect($get->view()); /*******order*******************/ $currentVars=array("view"=>$get->view()); $order="asc"; //asc||desc $orderBy="date"; //order by column field if ($get->order_by()!="" && $get->order()!=""){
public function loadBy(){ if ($this->userVars->validateVars()){ $e= new pExploit(); $e->dbh($this->dbh); if($this->userVars->id()){ $this->exploits=$e->mySqlSelectByCategory($this->userVars->id(), 0, 15); $this->navigation->nElements($e->mysqlCountByCategory($this->userVars->id())); } } }//loadBy