A SQL wyrazenie, ktore mam wyglada tak:
<?php $q = q('SELECT id,t FROM `'.PRFX.'knowledge` WHERE text LIKE "%'.$GET.'%" or t LIKE "%'.$GET.'%" ORDER BY id DESC'); if(n_r($q) > 0) while($r = f($q)) { $r['t_'] = _url($r['t']); $r['date'] = substr($r['date'],0,16); $_r[] = $r; } $this->tpl->assign('r',$_r); [/b] ?>
p.s. nie trzeba czasem dac pomiedzy " " (spacje) wstawic plus (+) ?
str_replace(" ","+",$GET)?