1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
| //ma requête sur la table fournisseurs
$reponse = mysql_query("SELECT frsid, societe, remise, qte FROM sbbfrs WHERE frsid='$id'") or die(mysql_error());
while ($donnees = mysql_fetch_array($reponse))
{
echo $donnees['societe']; //sans rapport avec le sujet de mon message
echo $donnees['remise']; //sans rapport avec le sujet de mon message
$qte = $donnees[3];
}
if ($qte == 100 ) {
$resultat = mysql_query("SELECT sbbproduit.id, sbbproduit.hid, sbbproduit.sid, sbbproduit.libelle, sbbproduit.photoarticle, sbbproduit.frsid, sbbref.ref, sbbref.libelle, sbbref.societe FROM sbbproduit, sbbref WHERE sbbproduit.libelle = sbbref.libelle AND sbbproduit.frsid='$id' LIMIT 0,100") or die(mysql_error());
}
else {
$resultat = mysql_query("SELECT sbbproduit.id, sbbproduit.hid, sbbproduit.sid, sbbproduit.libelle, sbbproduit.photoarticle, sbbproduit.frsid, sbbref.ref, sbbref.libelle, sbbref.societe FROM sbbproduit, sbbref WHERE sbbproduit.libelle = sbbref.libelle AND sbbproduit.frsid='$id' LIMIT 0,60") or die(mysql_error());
} |
Partager