public function search() { $myservices = Cproduct::search(strip_tags($_POST['product']), strip_tags($_POST['serial_no']), strip_tags($_POST['location']), $_POST['date'], $_SESSION['client_ident']); $index_array = array("myservices" => $myservices, "mypagin" => ""); return $index_array; }