bonjour à tous

je vous écris car je souhaites mettre la liste complete des infos de ma table, dans un mail html, j'essaye de mettre while dans le corps du mail, mais cela ne fonctionne pas,

auriez vous une idée svp

voila la parti que je veux intégré :

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
 Aujourd\'hui <b>'.$nomcommerce.'</b> te proposes ses services, en effet ce commerçant te proposes en ce moment:<p> <b>'.$promotion.'</b><p> c\'est génial n\'est ce pas ? <p>
 Réserves vite au <b>'.$tel.'</b> et rends toi vite dans sa boutique situé <b>'.$adresse.'</b>
<p>
| Ton numéro de carte <b>'.$numerocarte.'</b> |<p>
 
 
 
 
Désormais tu peux maintenant rejoindres l\'association TDM sur www.tesdemuret.fr en cliquant sur l\'onglet "L\'Association" puis "Nous rejoindres" trop cool hein ? 
<p>
<P>
 
Si vous n\'avez pas reçu votre carte vous pouvez la récupérer chez un de nos distributeur suivant : <p>
 
 
'.
$select = "SELECT * from commercant where distribution = 1";
 $req = $conn->query($select);
 
 while($data = mysqli_fetch_array($req)){
 
	 $promotion = $data["promotion"];
	  $nomcommercee = $data["nomcommerce"];
 $tele = $data["tel"];
 $adressee = $data["adressep"];
 
 
$nomcommercee.' situé à adresse '.$adressee.' contact : '.$tele.'
'.
 } 
.'
 
 
 
 
 
 
<i>Tu ne souhaites plus recevoir l\'offre de nos partenaires ? C\'est dommage mais tu peux annuler ton abonnement en cliquant : <a href =\'https://www.tesdemuret.fr/nonews.php?email='.$email.'&iduser='.$iduser.'\'>>>> ICI <<<</a></i></p>
Si tu ne vois pas le lien copie/colle celui-ci dans ton navigateur https://www.tesdemuret.fr/nonews.php?email='.$email.'&iduser='.$iduser.'<p>

et voila la partie entiere du corps du message :



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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
 
//=====Déclaration des messages au format texte et au format HTML.
 
 
$message_html = '<html xmlns="https://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="https://fonts.googleapis.com/css?family=Open+Sans:400,300,700,600" rel="stylesheet" type="text/css">
<head>
<!--[if gte mso 12]>
 <style type="text/css">
 [a.btn {
	padding:15px 22px !important;
	display:inline-block !important;
}]
</style>
 <![endif]-->
<style type="text/css">
div, p, a, li, td {
	-webkit-text-size-adjust:none;
}
.ReadMsgBody {
	width: 100%;
	background-color: #d1d1d1;
}
.ExternalClass {
	width: 100%;
	background-color: #d1d1d1;
	line-height:100%;
}
body {
	width: 100%;
	height: 100%;
	background-color: #d1d1d1;
	margin:0;
	padding:0;
	-webkit-font-smoothing: antialiased;
	-webkit-text-size-adjust:100%;
}
html {
	width: 100%;
}
img {
	-ms-interpolation-mode:bicubic;
}
table[class=full] {
	padding:0 !important;
	border:none !important;
}
table td img[class=imgresponsive] {
	width:100% !important;
	height:auto !important;
	display:block !important;
}
@media only screen and (max-width: 800px) {
body {
 width:auto!important;
}
table[class=full] {
 width:100%!important;
}
table[class=devicewidth] {
 width:100% !important;
 padding-left:20px !important;
 padding-right: 20px!important;
}
table td img.responsiveimg {
 width:100% !important;
 height:auto !important;
 display:block !important;
}
}
@media only screen and (max-width: 640px) {
table[class=devicewidth] {
 width:100% !important;
}
table[class=inner] {
 width:100%!important;
 text-align: center!important;
 clear: both;
}
table td a[class=top-button] {
 width:160px !important;
  font-size:14px !important;
 line-height:37px !important;
}
table td[class=readmore-button] {
 text-align:center !important;
}
table td[class=readmore-button] a {
 float:none !important;
 display:inline-block !important;
}
.hide {
 display:none !important;
}
table td[class=smallfont] {
 border:none !important;
 font-size:26px !important;
}
table td[class=sidespace] {
 width:10px !important;
}
}
 @media only screen and (max-width: 520px) {
}
@media only screen and (max-width: 480px) {
 
 table {
 border-collapse: collapse;
}
table td[class=template-img] img {
 width:100% !important;
 display:block !important;
}
}
@media only screen and (max-width: 320px) {
}
</style>
</head>
<body>
 
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="full">
  <tr>
    <td align="center"><table width="600" border="0" cellspacing="0" cellpadding="0" align="center" class="devicewidth">
        <tr>
          <td><table width="100%" bgcolor="#ffffff" border="0" cellspacing="0" cellpadding="0" align="center" class="full" style="background-color:#ffffff;">
              <tr>
                <td height="23">&nbsp;</td>
              </tr>
              <tr>
                <td><table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
 
                    <tr>
                      <td width="23" class="sidespace">&nbsp;</td>
                      <td><table width="76%" border="0" cellspacing="0" cellpadding="0" align="left" class="inner" id="banner" style="border-collapse:collapse; mso-table-lspace:0pt; mso-table-rspace:0pt;">
                          <tr>
                            <td style="font:bold 27px Arial, Helvetica, sans-serif; border-right:1px solid #dbdbdb;" class="smallfont">Information T\'ES DE MURET</td>
                          </tr>
                          <tr>
                            <td height="20">&nbsp;</td>
                          </tr>
                        </table>
                        <table width="22%" border="0" cellspacing="0" cellpadding="0" align="right" class="inner" style="border-collapse:collapse; mso-table-lspace:0pt; mso-table-rspace:0pt;">
                          <tr>
                            <td align="center"><a href="https://www.facebook.com/groups/1383840451862587/" style="margin-top:5px; display:inline-block;"><img src="https://www.tesdemuret.fr/mail/images/facebook.png" width="32" height="atuo" alt="Social Media" /></a></td>
 
                          </tr>
                          <tr>
                            <td height="20">&nbsp;</td>
                            <td height="20">&nbsp;</td>
                            <td height="20">&nbsp;</td>
                          </tr>
                        </table></td>
                      <td width="23" class="sidespace">&nbsp;</td>
                    </tr>
                  </table>
                  <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
                    <tr>
                      <td width="3.33%" class="sidespace">&nbsp;</td>
                      <td width="93.33%"><img class="imgresponsive" src="https://www.tesdemuret.fr/mail/images/couvtdm.jpg" width="554" height="atuo" alt="Banner" /></td>
                      <td width="3.33%" class="sidespace">&nbsp;</td>
                    </tr>
                    <tr>
                      <td height="20">&nbsp;</td>
                      <td height="20">&nbsp;</td>
                      <td height="20">&nbsp;</td>
                    </tr>
                  </table>
                  <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
                    <tr>
                      <td width="23" class="sidespace">&nbsp;</td>
                      <td>
                        <table width="100%" border="0" cellspacing="0" cellpadding="0" align="left" class="inner">
                          <tr>
                            <td style="font:14px/19px Arial, Helvetica, sans-serif; color:#333332;">
 
                      <div class="top-button" style="text-align: center; font:bold 13px/37px Arial, Helvetica, sans-serif; color:#ffffff; text-decoration:none; background:#16c4a9; display:block; border-radius:24px; text-transform:uppercase;">Bonjour '.$prenom.'</div>
 
 Aujourd\'hui <b>'.$nomcommerce.'</b> te proposes ses services, en effet ce commerçant te proposes en ce moment:<p> <b>'.$promotion.'</b><p> c\'est génial n\'est ce pas ? <p>
 Réserves vite au <b>'.$tel.'</b> et rends toi vite dans sa boutique situé <b>'.$adresse.'</b>
<p>
| Ton numéro de carte <b>'.$numerocarte.'</b> |<p>
 
 
 
 
Désormais tu peux maintenant rejoindres l\'association TDM sur www.tesdemuret.fr en cliquant sur l\'onglet "L\'Association" puis "Nous rejoindres" trop cool hein ? 
<p>
<P>
 
Si vous n\'avez pas reçu votre carte vous pouvez la récupérer chez un de nos distributeur suivant : <p>
 
 
'.
$select = "SELECT * from commercant where distribution = 1";
 $req = $conn->query($select);
 
 while($data = mysqli_fetch_array($req)){
 
	 $promotion = $data["promotion"];
	  $nomcommercee = $data["nomcommerce"];
 $tele = $data["tel"];
 $adressee = $data["adressep"];
 
 
$nomcommercee.' situé à adresse '.$adressee.' contact : '.$tele.'
'.
 } 
.'
 
 
 
 
 
 
<i>Tu ne souhaites plus recevoir l\'offre de nos partenaires ? C\'est dommage mais tu peux annuler ton abonnement en cliquant : <a href =\'https://www.tesdemuret.fr/nonews.php?email='.$email.'&iduser='.$iduser.'\'>>>> ICI <<<</a></i></p>
Si tu ne vois pas le lien copie/colle celui-ci dans ton navigateur https://www.tesdemuret.fr/nonews.php?email='.$email.'&iduser='.$iduser.'<p>
 
 
<P>
 
Cordialement<br>
Alain Paltou <br>
Support TDM<br>
<p></td>
                          </tr>
                          <tr>
                            <td height="20">&nbsp;</td>
                          </tr>
 
                        </table></td>
                      <td width="23" class="sidespace">&nbsp;</td>
                    </tr>
                    <tr>
                      <td height="16">&nbsp;</td>
                      <td height="16">&nbsp;</td>
                      <td height="16">&nbsp;</td>
                    </tr>
                  </table></td>
              </tr>
              <tr>
                <td style="border-bottom:1px solid #dbdbdb;">&nbsp;</td>
              </tr>
            </table></td>
        </tr>
      </table></td>
  </tr>
</table>
 
 
 
';