[SQL] problème clause where
bonjour,
je vais faire une séléction de tous les N°caractérisation de la table "caractérisation"where id_article=.$_GET['id'],j'ai essayer avec le code suivant mais ça marche pas,je sais pas où le problème?
voici moln code PHP:
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
| <?php
require("../conn/conn.php");
$str="select * from caracterisation where ID_ARTICLE =".$_GET['id'];
$r=mysql_query($str)or die('Erreur SQL !'.$str.'<br />'.mysql_error());
?>
<?php
while($v=mysql_fetch_array($r))
{ ?>
<tr>
<th scope="row"><?=$v['ID_CARACT']?></th>
<td><?=$v['N_INVENTAIRE']?></td>
<td><?=$v['N_SERIE']?></td>
<td><input type="checkbox" name="checkbox" value="checkbox">
<?
}
?> |
il m'affiche comme messaged'erreur:
Erreur SQL !select * from caracterisation where ID_ARTICLE =3333
Champ 'ID_ARTICLE' inconnu dans where clause
vraiment j'arrive pas à trouver l'erreur s'il vous plait aide moi
merci d'avance