error_reporting(0); include('../functions/database.php'); $SQL=new SQLDataBase("localhost","maikapri_maika","maikapri_nana","w,t)|7sADf,X"); //$SQL=new SQLDataBase("localhost","shirt","root","vertrigo"); $_SESSION["lang"]=$_GET['lang']; include("../lang/".$_SESSION['lang'].".php"); if($_GET['prod_id']) { $and=" and id='".(int)$_GET['prod_id']."'"; } else $and=" and id='0'"; $sql=mysql_query("select * from product where status='1' ".$and); $data=mysql_fetch_array($sql); $image=mysql_query("select * from images where prod_id='$data[id]' and main='1' order by id desc"); $images=mysql_fetch_array($image); ?>
if($images['image']!=""){ ?>
}else{ echo '
'; } ?>
$x=0; $image_source=mysql_query("select * from images where prod_id='$data[id]' order by id desc"); while($images=mysql_fetch_array($image_source)) { ?>
$x++; if($x==6) {echo '
'; $x=0;}} ?>
echo $data['title_'.$_GET['lang']];?>
№ echo $data['id'];?>
if($data['cat_id']!=='174') {?> ზომა
S
M
L
XL
2XL
3XL
4XL
}?> რაოდენობა
echo "
".price.':
'.$data['price'].' GEL;
'; if($data['cat_id']!=='174') echo '
ქსოვილის შემადგენლობა:
'.$data['qsovilis_shemadgenloba'].'
'; if($data['info_'.$_GET['lang']]!=="" || $data['info_'.$_GET['lang']]!==" ") echo "
".more_info."
".$data['info_'.$_GET['lang']]; ?>
/* $p=mysql_query("select * from shopping_card where ip='".$_SERVER['REMOTE_ADDR']."' and prod_id='".$data['id']."'"); if(!mysql_num_rows($p)) { ?>
} */ ?>