Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
18 lines (15 sloc) 335 Bytes
<?
if (!defined("POUET_API")) exit();
$ids = SQLLib::SelectRows(sprintf_esc("select id,name from prods where releaseDate between '%d-01-01' and '%d-12-31'",$_GET["year"],$_GET["year"]));
$result = new stdClass();
if ($ids)
{
$result->success = true;
$result->prods = $ids;
}
else
{
$result->error = true;
}
output($result);
?>