Here is the php
PHP Code:
if ($string!="") {
$condition.=" AND linkname LIKE '%".addslashes($string)."%' OR linkdesc LIKE '%".addslashes($string)."%'";
}
$search=$DB_site->query_first("SELECT linkid,catagoryid,linkname,linkdesc FROM gportal_weblinkslink ORDER BY linkname");
while ($results=$DB_site->fetch_array($search)) {
$linkid = $results['linkid'];
$linkname = $results['linkname'];
$linkdesc = $results['linkdesc'];
$hits = $results['hits'];
eval("\$resultbits .= \"".gettemplate("drkslinks_linkbit")."\";");
}
eval("\$navigation = \"".gettemplate("drkslinks_navigation")."\";");
eval("dooutput(\"".gettemplate('drkslinks_searchresults')."\");");;