PHP Classes

File: index.php

Recommend this page to a friend!
  Classes of Ettore Moretti  >  Multisources Search Engine  >  index.php  >  Download  
File: index.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Multisources Search Engine
Search data on MySQL, XML, INI or flat files
Author: By
Last change: MultisourcesSearchEngine

The Search class allows you to perform searches on a variety of sources.
Date: 1 year ago
Size: 935 bytes


Class file image Download
$_POST['searchKey']) && trim($_POST['searchKey'])!='' && preg_replace("/[^0-9a-z]/","",$_POST['searchKey'])!='')
$out= Search::getDBSearch(preg_replace("/[^0-9a-z]/","",$_POST['searchKey']));
//$out= Search::getXMLSearch(preg_replace("/[^0-9a-zA-Z]/","",$_POST['searchKey']));
        //$out= Search::getINISearch(preg_replace("/[^0-9a-z]/","",$_POST['searchKey']));
        //$out= Search::getFLATSearch(preg_replace("/[^0-9a-z]/","",$_POST['searchKey']));

<form action="#" method="post">

<span>Search (stuff):</span>
<input type="text" name="searchKey" value="" placeholder="Search key here"/>
<input type="submit" name="sub" value"Search that" />

<div class="result_container">
<?php if(isset($out)){
//Now you can format the output as you wish :)
echo "<pre>";