bonjour j ai un b avec mon script modifié

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
 <?php
require('./db.php');
 
$id =$_GET['id_produit'];
$res = mysql_query("select from stock where id_produit=$id");
$row = mysql_fetch_array($res);
if (!$row)
die("Demande non trouvée");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Document sans titre</title>
</head>
 
<body>
 
<form method="POST" action="test2.php">
<input type="hidden" name="id_produit" value="<?= $id ?>" />
<div align="center"></div>
<p align="center">
 
 
<table width="566" border="0" align="center">
<p align="center">
</p><tr>
     <td><font face="Verdana" size="2">Nom</font></td>
     <td><input name="nom" type="text"style="background-color: #CCCCCC;font: Verdana; color: #000000; border: 0px;" value="<?= $row["nom"] ?>"></td>
   </tr>
</table>
<div align="center"></div>
</form>
</body>
</html>
et voici le messge d'erreur


Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in c:\program files\easyphp1-8\www\actimac\cms\test.php on line 6
Demande non trouvée


je pige pas parce que pour une utre table c le même code et ca marche correctement?