I am trying to create a search query for either the Year Built (YearBuilt) at yachts.theskywatergroup.com/yatco_data_feeds/datafeed_customer/query2.php or State (LocationState) a Vessel is located in at yachts.theskywatergroup.com/yatco_data_feeds/datafeed_customer/query3.php.

See code below. I can only get the full return of the URI of all boats from the API with JSON, not just a return on the query of what I am searching for.

I am not fluent in PHP coding as I am more involved in web design, graphics, emarketing, etc., but want to learn this for one of my friend's who is a Yacht broker.

Part of the example response data from the "Search" URI is below.

A few questions as this is new to me -

1 - What are the numbers and "String content" in JSON?

2 - Can $_Get('City') be a request from a form?

3 - Is it my code in the attached files or is there something else I need from the providing Dataservice?

Code:
{
    "PageCount":"2147483647,

    "RecordCount":2147483647,

    "Vessels":[(
        "AskingPriceFormatted":"String content",
        "City":"String content",
        "VesselID":2147483647,

        "YearBuilt":2147483647

    )]
}
QUERY
yachts.theskywatergroup.com/yatco_data_feeds/datafeed_customer/query2.php ---------------->

Code:
<!DOCTYPE HTML>
<html>
<head>
<title>Skywater Yacht Search</title>
<link type="text/css" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.9.2/themes/ui-darkness/jquery-ui.css" rel="stylesheet">
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.9.2/jquery-ui.min.js"></script>
</head>
<body>

<form action="http://www.yachts.theskywatergroup.com/yatco_data_feeds/datafeed_customer/query_results2.php" target="_blank" method="get">
Year Built:	<input id="YearBuilt" type="text" placeholder="Year Built" name="YearBuilt" size="7" maxlength="4" />
    <input name="search" type="submit" class="" value="Search" />
</form>
    
</body>
</html>
QUERY RESULTS
yachts.theskywatergroup.com/yatco_data_feeds/datafeed_customer/query_results2.php?YearBuilt=2010&search=Search-------------------->

Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<title></title>
	<link href="http://datafeed.yatco.com/yatco.css" rel="stylesheet" type="text/css" />
	<meta charset="utf-8">
</head>
 <body>
<?php
$apikey = 'BAEA3B8BEA3ED76D49D03ED38E';
$service_url = 'http://data.yatco.com/dataservice/' . $apikey . '/search?pagesize=10&pageindex=0&format=json';
$curl = curl_init($service_url);

//curl_setopt($curl, CURLOPT_REFERER, 'http://localhost');
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);

$curl_response = curl_exec($curl);

if ($curl_response === false) {
    $info = curl_getinfo($curl);
    curl_close($curl);
    die('error occured during curl exec. Additioanl info: ' . var_export($info));
}

curl_close($curl);
$decoded = json_decode($curl_response);
if (isset($decoded->response->status) && $decoded->response->status == 'ERROR') {
    die('error occured: ' . $decoded->response->errormessage);
}

foreach ($decoded as $name => $value) {
	if ($name != 'Vessels') {
    	echo $name . ' = ' . $value . '<br />';
	} else {
	foreach ($value as $entry) {
    	if($entry->YearBuilt == $_GET['YearBuilt']) {
        	// all of the HTML code as it is
    }

?>
    	
	<table border="0" width="100%" cellspacing="0" cellpadding="0">
						<tbody>
							<tr>
								<td style="background-color: #a1a1a1; height: 1px;" colspan="3">
								</td>
							</tr>
							<tr>
								<td class="SearchHeader" colspan="3">
									<span><?php Echo $entry->Boatname ?></span>&nbsp; <span><?php Echo $entry->AskingPriceFormatted?>
									</span>&nbsp; <span><?php Echo $entry->ApproxPriceFormatted ?></span>&nbsp; (<a href="#"
										class="ResultsLink" onclick="viewVessel(<?php Echo $entry->VesselID ?>);">View Details</a>)
								</td>
							</tr>
							<tr>
								<td valign="top" align="left" width="200px"><img src='<?php Echo $entry->ProfileURL ?>' alt="" title="" style="max-height: 200px;
										max-width: 200px;" onclick="viewVessel(<?php Echo $entry->VesselID ?>);" /></td>
								<td valign="top" style="padding: 5px 0px 0px 5px;" width="200px">
									<table>
										<tr>
											<td>
												<span class="SearchLabel">LOA:</span>&nbsp; <span class="SearchData"><?php Echo $entry->LOAFeet ?>
												</span>
											</td>
										</tr>
										<tr>
											<td>
												<span class="SearchLabel">Model Year:</span>&nbsp; <span class="SearchData"><?php Echo $entry->YearBuilt ?>
												</span>
											</td>
										</tr>
										<tr>
											<td>
												<span class="SearchLabel">Beam:</span>&nbsp; <span class="SearchData"><?php Echo $entry->BeamFeet ?>
												</span>
											</td>
										</tr>
										<tr>
											<td>
												<span class="SearchLabel">Draft:</span>&nbsp; <span class="SearchData"><?php Echo $entry->DraftFeet ?>
												</span>
											</td>
										</tr>
										<tr>
											<td>
												<span class="SearchLabel">Staterooms/Sleeps:</span>&nbsp; <span class="SearchData"><?php Echo $entry->NumStaterooms ?></span>/
												<span class="SearchData"><?php Echo $entry->NumSleeps ?></span>
											</td>
										</tr>
										<tr>
											<td height="5">
											</td>
										</tr>
									</table>
								</td>
								<td valign="top" style="padding: 5px 0px 0px 5px;">
									<table>
										<tr>
											<td>
												<span class="SearchLabel">Builder:</span>&nbsp; <span class="SearchData"><?php Echo $entry->Builder ?>
												</span>
											</td>
										</tr>
										<tr>
											<td>
												<span class="SearchLabel">Model:</span>&nbsp; <span class="SearchData"><?php Echo $entry->Model ?>
												</span>
											</td>
										</tr>
										<tr>
											<td>
												<span class="SearchLabel">Type:</span>&nbsp; <span class="SearchData"><?php Echo $entry->MainCategory ?>
												</span>&nbsp;
											</td>
										</tr>
										<tr>
											<td>
												<span class="SearchLabel">Engine:</span>&nbsp; <span class="SearchData"><?php Echo $entry->EngineInfo ?>
												</span>
											</td>
										</tr>
										<tr>
											<td>
												<span class="SearchLabel">Location:</span>&nbsp; <span class="SearchData"><?php Echo $entry->VesselLocation ?>
												</span>
											</td>
										</tr>
									</table>
								</td>
							</tr>
						</tbody>
					</table>
	<?php
	}
	}
}

 ?> 
 </body>
</html>