PHP Classes

File: search.php

Recommend this page to a friend!
  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: 17 years ago
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);
}


?>