public static function getAccForId($accid) { $query = "select * from account where id={$accid}"; return Mdb::sqlRowQuery($query); }
public static function getContent($id) { $query = "select content from expression where id={$id}"; $res = Mdb::sqlRowQuery($query); return $res['content']; }