Login   Register  
PHP Classes
elePHPant
Icontem

File: test.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Igor Herson Aquino de Franša  >  Advanced Search  >  test.php  >  Download  
File: test.php
Role: Example script
Content type: text/plain
Description: file for test
Class: Advanced Search
Compose and execute MySQL database SELECT queries
Author: By
Last change:
Date: 5 years ago
Size: 588 bytes
 

Contents

Class file image Download
<?php
include('search.class.php');
$search = new search;
//table to search
$search->table 'cidades';
//array to show results
$result = array('id''Regiao');
 
?>
 <p> Insert a field to search</p>
 <p> For user between, an not between, use the boollean operator AND </p>
 <p> For search with more words, use the boollean operator OR</p>
<form action="<?=$_SERVER['PHP_SELF']?>" method="post">
<?=$search->fieldSelect()?>
<?=$search
->whereSelect()?>
<?=$search
->fieldText(10,20)?>
<input type="submit" name="submit" value="submit" />
</form>
<?=$search->result($result)?>