$sql4p = "SELECT nom FROM suite,suite_prd where suite.id=id_suite and id_prd='".$ligne2[0]."'";
$resultat4p = mysql_query($sql4p);
$nbligne4p=mysql_num_rows($resultat4p);
$ligne4p = mysql_fetch_row($resultat4p);
?>
=stripslashes($ligne2[1])?>
=$ligne2[2]?>
if($ligne2[5]!='') { ?>
if($_SESSION['lang']=='it')
echo 'Prezzo';
if($_SESSION['lang']=='fr')
echo 'Prix';
if($_SESSION['lang']=='an')
echo 'Price';
?>
:
=$ligne2[5]?> €
} ?>
if($ligne2[5]!='') { ?>
if($_SESSION['lang']=='it')
echo 'Quantità : ';
if($_SESSION['lang']=='fr')
echo 'Quantité : ';
if($_SESSION['lang']=='an')
echo 'Quantity : ';
?>
} ?>
$sql2222 = "SELECT taille,id FROM tailles where id_prod='".$ligne2[0]."'";
$resultat2222 = mysql_query($sql2222);
$nbligne2222t=mysql_num_rows($resultat2222);
$ligne2222 = mysql_fetch_row($resultat2222);
$taillee=$ligne2222[1];
if($nbligne2222t>0) { ?>
if($_SESSION['lang']=='it')
echo 'Taglia : ';
if($_SESSION['lang']=='fr')
echo 'Taille : ';
if($_SESSION['lang']=='an')
echo 'Size : ';
?>
}
else
{?>
} ?>
$sql2222 = "SELECT couleur,id FROM couleurs where id_prod='".$ligne2[0]."'";
$resultat2222 = mysql_query($sql2222);
$nbligne2222=mysql_num_rows($resultat2222);
$ligne2222 = mysql_fetch_row($resultat2222);
$colorr=$ligne2222[1];
?>
$sql4s = "SELECT stock FROM stock where id_c='".$colorr."' and id_t='".$taillee."' and id_prod='".$ligne2[0]."'";
$resultat4s = mysql_query($sql4s);
$nbligne4s=mysql_num_rows($resultat4s);
$ligne4s = mysql_fetch_row($resultat4s); ?>
if(($ligne4s[0]>0) && ($nbligne4s>0))
{
if($_SESSION['lang']=='it')
echo ''.$ligne4s[0].' articoli';
if($_SESSION['lang']=='fr')
echo ''.$ligne4s[0].' article(s)';
if($_SESSION['lang']=='an')
echo ''.$ligne4s[0].' article';
}
elseif(($ligne4s[0]=='0') && ($nbligne4s>0))
{
if($_SESSION['lang']=='it')
echo 'Articolo terminato';
if($_SESSION['lang']=='fr')
echo 'Epuisé';
if($_SESSION['lang']=='an')
echo 'Epuisé';
}
/*elseif($nbligne4s==0)
echo 'Epuisé';*/
?>
if($nbligne2222>0) { ?>
if($_SESSION['lang']=='it')
echo 'Colore : ';
if($_SESSION['lang']=='fr')
echo 'Couleur : ';
if($_SESSION['lang']=='an')
echo 'Color : ';
?>
for($ir=0;$ir<$nbligne2222;$ir++)
{
?>
value="=$ligne2222[1];?>" />
$ligne2222 = mysql_fetch_row($resultat2222);
} ?>
}
else
{?>
} ?>
if($ligne2[5]>0) { ?>
} ?>
$sql2 = "SELECT text,login FROM comments,client where client.id=id_clt and id_prd='".$ligne2[0]."' and valid='oui'";
$resultat21 = mysql_query($sql2);
$nbligne=mysql_num_rows($resultat21);
if($_SESSION['lang']=='it')
echo 'Cosa ne pensano le mamme ('.$nbligne.' commenti) :
';
if($_SESSION['lang']=='fr')
echo 'Que dites-vous des mamans ('.$nbligne.' commentaires) :
';
if($_SESSION['lang']=='an')
echo 'What do you say moms ('.$nbligne.' comments) :
';
for($i=0;$i<$nbligne;$i++)
{
$ligne21 = mysql_fetch_row($resultat21); ?>
=$ligne21[1]?> : =$ligne21[0]?>
} ?>