J'aimerais recupere le resultat par rapport au numero de ma base de donné

sois 1 = casse coche et 0 case pas coche

comment faire pour qu'il m'affiche si oui ou non

les infos dans la base ce trouve dans visible

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
 
<?php
 
		  connecter();
 
          $id = $_GET['id'];
		  // RECHERCHE SI ON A LA FAMILLE DANS STAT SINON ON AFFICHE 0	
          $found=mysql_query("SELECT login_soc FROM article")
          or die(mysql_error());
          $nb1=mysql_numrows($found);
          if($nb1<>"0"){$erreur='Y';}else{$erreur='N';}
 
         if($erreur=='Y')
         {
 
          $select = "SELECT * FROM article WHERE login_soc='$pseudo' AND id='$id'";
          $result = mysql_query($select);
	      while($row = mysql_fetch_array($result))
		  {
		  $rowid = $row['id'];
		  $rownom = $row['des'];
		  $rownom1 = $row['ref'];
		  $rownom2 = $row['prix_ht'];
		  $rownom3 = $row['stock_actuel'];
		  $rownom4 = $row['stock_cmd'];
		  $rowvis = $row['visible'];
		  $rowrayon = $row['rayon'];
		  $rowcat = $row['categorie'];
 
 
		echo "Actuellement ce produit est visible en boutique *: <font color=\"#FF0000\">$rowvis</font><br>";  
		echo "Actuellement ce produit est visible dans le rayon *: <font color=\"#FF0000\">$rowrayon</font><br>";
		echo "Actuellement ce produit est visible dans la catégorie *: <font color=\"#FF0000\">$rowcat</font>";
 
 
?>
<form method="POST" action="index.php?page=9&pages=29&id=<?php echo $rowid;?>">
	<tr>
		<td align="center" width="84"><input type="text" name="ref" value="<?php echo $rownom1;?>" size="5" ></td>
		<td align="center"><input type="text" name="des" value="<?php echo $rownom;?>" size="12" ></td>
		<td align="center"><input type="text" name="prix_ht" value="<?php echo $rownom2;?>" size="2" ></td>
		<td align="center"><input type="text" name="stock_actuel" value="<?php echo $rownom3;?>" size="2" ></td>
		<td align="center"><input type="text" name="stock_cmd" value="<?php echo $rownom4;?>" size="3"></td>
		<td><input type="checkbox" name="visible" value="0">NON<br>
<input type="checkbox" name="visible" value="1">OUI<br>
</td>
		</tr>
 
 
<?php
         }
		 if($erreur=='N')
         {
		 ?>
<?php
		 }
		 }
	      ?>