Project

General

Profile

Statistics
| Branch: | Revision:

root / docs / www / colonyscout / internal / search.php @ f59acf11

History | View | Annotate | Download (291 Bytes)

1
<?php
2
require 'includes/class.queryboxdb.php';
3
$search_query = !empty($_GET['q']) && strlen($_GET['q'])>1 ? $_GET['q'] : null;
4
$search = new QueryBoxDB();
5

    
6
if($search_query){
7
 //create the query to your DB, and serve the Json Results:
8
 $search->query($search_query);
9
 $search->serve();
10
}
11

    
12
?>