function.php
//Function for SELECT in search.php
Function for SELECT in search.php
Function for SELECT in search . php
function selectFromArchiveDBM($db, $date, $query, $limit) {
		$sql="SELECT id,timestamp,host,facility,level,tag,msg FROM ".$db." WHERE timestamp LIKE '".$date."%' AND (timestamp LIKE '%".$query."%' OR host LIKE '%".$query."%'
				OR msg LIKE '%".$query."%')
				ORDER BY timestamp DESC LIMIT 500";
		$result = mysql_query($sql);
		return $result;
	}
function selectFromArchiveDBM ( $ db , $ date , $ query , $ limit ) { $ sql = " SELECT id,timestamp,host,facility,level,tag,msg FROM  " . $ db . "  WHERE timestamp LIKE ' " . $ date . " %' AND (timestamp LIKE '% " . $ query . " %' OR host LIKE '% " . $ query . " %'
				OR msg LIKE '% " . $ query . " %')
				ORDER BY timestamp DESC LIMIT 500 " ; $ result = mysql_query ( $ sql ) ; return $ result ; }
Function for SELECT in search.php
Function for SELECT in search . php