require_once '../kanri/lib/connectdb.php';
$conn = connectdb();
$goodsid = @$_GET["g"];
if ($goodsid == '')
{
print 'error';
exit;
}
$sql = "SELECT * FROM eiwagoods where goodsid = $goodsid limit 1";
$rs = mysql_query($sql, $conn);
$rows = mysql_num_rows($rs);
$goodsid = mysql_result($rs,$i,0);
$maker = mysql_result($rs,$i,1);
$shashu = @mysql_result($rs,$i,2);
$hoken = @mysql_result($rs,$i,3);
$shaken = @mysql_result($rs,$i,4);
$color = @mysql_result($rs,$i,5);
$soukoukyori = @mysql_result($rs,$i,6);
$kakaku = @mysql_result($rs,$i,7);
$memo = @mysql_result($rs,$i,8);
$bikou = @mysql_result($rs,$i,9);
$soldout = @mysql_result($rs,$i,10);
$gazou1 = @mysql_result($rs,$i,11);
$gazou2 = @mysql_result($rs,$i,12);
$gazou3 = @mysql_result($rs,$i,13);
$gazou4 = @mysql_result($rs,$i,14);
$gazou5 = @mysql_result($rs,$i,15);
$nen = @mysql_result($rs,$i,16);
$tuki = @mysql_result($rs,$i,17);
$hi = @mysql_result($rs,$i,18);
$nenshiki = @mysql_result($rs,$i,40);
$hyaku = floor($goodsid/100);
if ($gazou1 != '')
{
$gazoulink = "";
$gazoulink1 = "../gazou/$hyaku/$goodsid/$gazou1";
}
else
{
$gazoulink1 = "images/noimage.gif";
}
if ($gazou2 != '')
{
$gazoulink2 = "../gazou/$hyaku/$goodsid/$gazou2";
}
else
{
$gazoulink2 = "images/noimage.gif";
}
if ($gazou3 != '')
{
$gazoulink3 = "../gazou/$hyaku/$goodsid/$gazou3";
}
else
{
$gazoulink3 = "images/noimage.gif";
}
if ($gazou4 != '')
{
$gazoulink4 = "../gazou/$hyaku/$goodsid/$gazou4";
}
else
{
$gazoulink4 = "images/noimage.gif";
}
if ($gazou5 != '')
{
$gazoulink5 = "../gazou/$hyaku/$goodsid/$gazou5";
}
else
{
$gazoulink5 = "images/noimage.gif";
}
if ($soldout == 'soldout')
{
$urikire = "SOLDOUT!";
}
?>