/var/www/doncode.com.ua/www/models
Edit: /var/www/doncode.com.ua/www/models/class.docs_model.php (1128B)
database->quote('%'.$ch.'%');
$sth = $this->database->prepare("SELECT `serverip`,`taxi_name` FROM `help` WHERE `$type` LIKE $char AND `deleted`='0' LIMIT ".LIMIT);
$sth->execute( );
ajax::out($sth->fetchAll());
} catch (Exception $e){
ajax::fail($e->getMessage());
return false;
}
}
public function fetechHelp($id){
try{
$sth = $this->database->prepare("SELECT c.*,t.name as tName FROM `help` c INNER JOIN `type_help` t ON (c.type=t.id) WHERE c.deleted='0' AND c.id=:id LIMIT 1 ");
$sth->execute(array(':id'=>$id));
ajax::out($sth->fetchAll());
return;
}catch(PDOException $e){
ajax::fail($e->getMessage());
return ;
}
}
}