Just a small script for someone who could put it too good use, but i'd like too take credit for building / releasing it.
<html>
<head>
<title>Torn Statistics - Items</title>
</head>
<body>
<h1 align='center'>Torn Items</h1><hr>
<?php
$gentime = microtime();
$gentime = explode( ' ', $gentime);
$gentime = $gentime[1] + $gentime[0];
$pg_start = $gentime;
$apikey = "APIKEYHERE";
$json = file_get_contents("http://api.torn.com/torn/?selections=items&key=" . $apikey . "");
$items = json_decode($json, true);
echo "<div align='center'>
<form method='post' action=''><select name='item'>";
foreach($items['items'] as $key=>$val){
echo "<option value='". $key ."'>". $val['name'] ."";
}
echo "</select><br /><input type='submit' value='Get Item Details'></form>";
$op = isset($_POST['item']) ? $_POST['item'] : false;
if ($op) {
$jj = file_get_contents("http://api.torn.com/torn/" . $_POST['item'] . "?selections=items&key=" . $apikey . "");
}
else
{
$jj = file_get_contents("http://api.torn.com/torn/1?selections=items&key=" . $apikey . "");
}
$ii = json_decode($jj, true);
$option = isset($_POST['item']) ? $_POST['item'] : false;
if ($option) {
echo "<table width='95%' cellpadding='0' cellspacing='1'>
<th align='left' height='35px'>ID: ". $_POST['item'] ."</th><th height='35px' align='left'>Details</th>
<tr height='25px'><td>Name</td><td>" . $ii['items'][$_POST['item']]['name'] . "</td></tr>
<tr height='25px'><td>Description</td><td>" . $ii['items'][$_POST['item']]['description'] . "</td></tr>
<tr height='25px'><td>Type</td><td>" . $ii['items'][$_POST['item']]['type'] . "</td></tr>
<tr height='25px'><td>Buy Price</td><td>$" . number_format($ii['items'][$_POST['item']]['buy_price']) . "</td></tr>
<tr height='25px'><td>Sell Price</td><td>$" . number_format($ii['items'][$_POST['item']]['sell_price']) . "</td></tr>
<tr height='25px'><td>Market Price</td><td>$" . number_format($ii['items'][$_POST['item']]['market_value']) . "</td></tr>
<tr height='25px'><td>Circulation</td><td>" . number_format($ii['items'][$_POST['item']]['circulation']) . "</td></tr>
<tr height='25px'><td>Image</td><td>" . $ii['items'][$_POST['item']]['image'] . "</td></tr>
</table></div>";
}
else
{
echo "You must select a item.";
}
echo "<hr><p align='center'>This page will grab item ids, name, description, type, buy price, sell price, market price, circulation and also the item image!</p>";
$gentime = microtime();
$gentime = explode( ' ', $gentime);
$gentime = $gentime[1] + $gentime[0];
$pg_end = $gentime;
$totaltime = ($pg_end - $pg_start);
$showtime = number_format($totaltime, 4, '.', '');
echo "<hr><div align='center'>This page was generated in <strong>" . $showtime . "</strong> seconds</div><hr>";
?>
</body>
</html>
[image: i68.tinypic.com]