Login   Register  
PHP Classes
elePHPant
Icontem

File: search.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Cesar D. Rodas  >  Guaranix Full Text  >  search.php  >  Download  
File: search.php
Role: Example script
Content type: text/plain
Description: The search test
Class: Guaranix Full Text
Index text documents for full text searching
Author: By
Last change:
Date: 2006-08-21 13:34
Size: 486 bytes
 

Contents

Class file image Download
<form name="form1" method="get" action="search.php">
  <input name="q" type="text" id="q" value='<? print isset($_GET["q"]) ? stripslashes($_GET["q"]) : ""?>'>
  <input type="submit" name="Submit" value="Buscar">
</form>
<?
include "gnix.php";
    
$connstring = array("db" => "test""host" => "localhost""user" => "root""pass" => "");

if (isset(
$_GET["q"]))
{
    
$query = new Gnix($connstring,MYSQL);
    
$salida $query->search($_GET["q"]);
    
print_r($salida);
}


?>