| Current Path : /var/www/html/mmishra/mm/air/ |
| Current File : /var/www/html/mmishra/mm/air/search.php |
<?php
if (!$query) $query = 'site';
$str = "Search <input type='text' id='query' name='query' size='14' value='$query' onfocus=\"clearText(this)\" onblur=\"putText(this)\">
<input type='submit' name='submit' value='SUBMIT'>
<ol>";
$tbl = 'webpages';
$rs = mysql_query("select * from $tbl where webid='$webid' and status='online' and CONCAT(pagecontent, keywords) like '%$query%'");
while ($o = mysql_fetch_object($rs)) {
$str .= "<li><a href='inner.php?conf=$o->rowid'>$o->hypertext</a>
<div align='right' style='font-size:9pt'>[ dated $o->datecreation, $o->hits hits ]</div>
".substr(strip_tags(htmlunsafe($o->pagecontent)),0,200) . "...</li>";
}
$str .= '</ol>';
echo $str;
?>