Your IP : 216.73.216.40


Current Path : /var/www/html/mmishra/mm/uprtou1/
Upload File :
Current File : /var/www/html/mmishra/mm/uprtou1/search.php

<?php

if (!$query) $query = 'site';

$str = "<img src='images/search.jpg' width='30' height='20' />
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;

?>