slt, tout le monde ,j'as un problem sur mon code mysql ,ca marche pas j'essayer plusieur fois, aider moi svp!

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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
<!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=utf-8" />
<title>commentaire</title>
 
 
<style>
.bouton{
	background-image:url(image/envoyer.jpg);
	width:127px;
	height:32px;
	border:0px;
}
</style>
 
 
<?php
 
$nom=$_POST['nom'];
$email=$_POST['email'];
$message=$_POST['message'];
$dat="sds";
$validation="oui";
 
 
if($nom!="" &  $email!="" & $message!="" )
{
 
$db=mysql_connect('localhost','root','');
if(!mysql_select_db('commentaire'))
{
echo"pas de base de donnes trouvee";
die;
}
 
 
 
 
$m = "insert into table (nom,email,message,date,validation)
VALUES ('nom','email','message','dat','validation')"; 
 
 
 
mysql_query($m);
 
 
$num=mysql_affected_rows();
if($num>0)
{
echo"une donnee est ajouter a votre base de donnee commentaire ";
 
}
elseif($num<0)
	{
	echo"pas de donnees ajouter";
}
mysql_close($db);
}
else
{
$r="tout les champs sont obligatoire???";
}
 
 
 
 
 
 
?>
 
</head>
 
<body>
<form action="commentaire.php" method="post">
 
<table width="442" border="0">
  <tr>
    <td width="92">Nom</td>
    <td width="334"><input type="text" name="nom" id="textfield" /></td>
  </tr>
  <tr>
    <td>Email</td>
    <td><input type="text" name="email" id="textfield" /></td>
  </tr>
  <tr>
    <td>message</td>
    <td><label>
      <textarea name="message" id="textarea" cols="45" rows="5"></textarea>
    </label></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td><input type="submit" value="" class="bouton" />
      <label></label></td>
  </tr>
</table>
</form>
</body>
</html>