Location: PHPKode > projects > WB News > examples/example_search.php
<?php

/*

	Archived News Display

*/

define('wbnews',true);

include "../global.php";
include $config['installdir']."/news.php";
include $config['installdir']."/search.php";

$search = new newsSearch($newsConfig);
$search->setCategory( 2 );

$search->displayEasy(); //or $search->displayAdvanced();

if ( isset($_POST['submit_Search']) )
{
	$search->displayResults('example_singlenews.php');
}

?>
Return current item: WB News