//include_once('/s/bac98.net/httpsdocs/bacshared/mysql.php'); ?>
bac98.net - msgboard
readfile('inc/style.htm') ?>
$find = $HTTP_POST_VARS['find'];
?>
// ========== search
if (strlen($find) > 0) {
?>
mysql_connect('localhost','bac98','bac2003');
mysql_select_db('bac98');
$table_name = 'system_bac_msg';
// config
$PAGE_WIDTH = 600;
?>
//echo $find;
$rs=mysql_query("select id, author, content, time_stamp, idinfo from $table_name ".
" where author like '%".addslashes($find)."%' or content like '%".addslashes($find)."%' ".
' order by time_stamp desc');
/*
$rs=mysql_query('select id, author, content, time_stamp, idinfo from '.$table_name.
' where author like '.dbquote(''.$find.'').' or content like '.dbquote(''.$find.'').
' order by time_stamp desc');
*/
$total = mysql_num_rows($rs);
?>
record(s) found.
while ($r = mysql_fetch_row($rs)) {
?>
(MSGID:)
if ($r[4]) { ?>
[]
Who?
} ?>
$date_str = date('l Y-m-d H:i:s', strtotime($r[3])) ;
?>
|
|
|
}
?>
// ========== search
}
?>