<?php

function getSearchResults($SEARCHVALUE)
{
	include(ROOT . DS . 'queries'. DS .'getPIDList.php'); // imports the correct sql statement
	$result = mysqli_query($GLOBALS["___mysqli_ston"], $query) or die('Query failed: ' . mysqli_error($GLOBALS["___mysqli_ston"]));	
	$data = array();
	
	while ($row = mysqli_fetch_assoc($result)) 
	{
		$data[] = $row;
	}	 	
	((mysqli_free_result($result) || (is_object($result) && (get_class($result) == "mysqli_result"))) ? true : false);
	return $data;
}
?>