$thing) { $explodedWords = array(); $explodedWords[] = $thing; } $keywordQuery = keywordQueryBuilder("$keywords", "OR"); $queries = array($keywordQuery); } elseif (!empty($keywords)) { $keywordQuery = keywordQueryBuilder("$keywords", "OR"); $queries = array($keywordQuery); } else { echo "An error happened."; } } else { $queries=null; $keywords = null; } //Building form for performing a search in kora - see functions.php $data = formSearchBuilder($fid, $token, $flags, $browserFieldValues, $queries); // Building an array to json_encode the form for searching. This is what's necessary to get the code back $array = array(); $array["forms"] = json_encode(array($data)); //Perform a cURL to get the data back from Kora and store into $results. Get back an array. $results = getData($array); //Counting the total number of records received $totalRecords = count($results[0]); //Making a variable to describe the total number of pages that I want since I am displaying 9 records per page $totalPages = ceil($totalRecords/9); //setting variable for image counters - without this, it only displays the same image. $i = 1; ?>

Browser is still being improved, but record(s) resulted for your query of ! You are on page of


= 4){ // need to change this so that it is the total number of records on the page. stops top pagination links from appearing when // there are a small amount of records?>