Précédent   Forum des professionnels en informatique > PHP > Langage > Syntaxe
Syntaxe Forum d'entraide sur la syntaxe de PHP et la POO. Avant de poster -> FAQ syntaxe, Cours d'initiation et cours de POO
Partagez cette discussion sur d'autres réseaux sociaux : Viadeo Twitter Google Facebook Digg Delicious MySpace Yahoo
Réponse Proposer ce sujet en actualité
 
Outils de la discussion
Publicité
'
Vieux 27/09/2011, 07h41   #1
Membre confirmé
 
Inscription : mars 2004
Messages : 1 187
Détails du profil
Informations forums :
Inscription : mars 2004
Messages : 1 187
Points : 233
Points : 233
Par défaut Syntax error, unexpected T_VARIABLE in /home/y.php on line 101

J'ai du mal à voir l'erreur dans le code suivant :

Code :
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
 
	// $envoi_mail->Body=$txt0230.$dataa['prenom'].' '.$dataa['nom'].','.$txt0231.$dataa['mdp'].$txt0243.$txt0244;
 
	$envoi_mail->Body='<html>
 
	<head>
 
		<title>'.$txt0235.'</title>
 
		<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
 
		<style type="text/css">
 
 
 
 
 
.global
 
{
 
margin-left:200px;
 
width:610px;
 
background-color:white;
 
}
 
 
 
 
 
.banniere
 
{
 
width:600px;
 
height:72px;
 
border:none;
 
background-image: url(\'http://www.swapnfly.com/images/banniere/banniere_finale_mail.png\');
 
}
 
 
 
.content
 
{
 
width:600px;
 
text-align:center;
 
background-color:white;
 
font-weight:550;
 
}
 
 
 
 
 
.textalignl
{
 
textalign:left;
 
}		
 
 
.footer
 
{
 
text-align:center;
 
border:none;
 
}
 
 
 
 
 
div.footer a:link {color:black;font-weight:bold;text-decoration:none;}
 
div.footer a:visited {color:black;font-weight:bold;text-decoration:none;}
 
div.footer a:hover {color:white;font-weight:bold;text-decoration:none;}
 
 
 
.foot_g
 
{
 
float:left;
 
width:20px;
 
height:20px;
 
background-image: url(\'http://www.swapnfly.com/images/footer_mail_g.jpg\');
 
border:none;
 
}
 
 
 
.foot_d
 
{
 
float:left;
 
width:20px;
 
height:20px;
 
background-image: url(\'http://www.swapnfly.com/images/footer_mail_d.jpg\');
 
border:none;
 
}
 
 
 
 
 
.foot_m
 
{
 
float:left;
 
width:560px;
 
height:20px;
 
background-image: url(\'http://www.swapnfly.com/images/footer_mail_m.jpg\');
 
border:none;
 
}
 
 
 
</style> 
 
	</head>
 
	<body bgcolor="#EFEFEF" text="#000000">
 
 
 
	<div class="global">
 
 
 
	<a href="'.$site.'index.php">
 
	<div class="banniere">
 
	</div>
 
	</a>
 
 
 
	<div class="content">
 
 
 
	<br />
 
 
 
	'$txt0230.$dataa['prenom'].' '.$dataa['nom'].','.$txt0231.$dataa['mdp'].'<br /><br /><span class="textalignl">'.$txt0244.'<br />'.$txt0244_bis.'<br /><a href="'.$site.'">SWAPnFLY</a></span>
 
 
 
	<br /><br />
 
 
 
	</div>
 
 
 
	<div class="footer">
 
 
 
	<div class="foot_g">
 
	</div>
 
 
 
	<div class="foot_m">
 
 
 
	<h1 style="font-size:1px;"> &nbsp </h1>
 
 
 
	<a href="'.$site.'condition-'.$lang.'.php">'.$idem_txt0209.'</a> | <a href="'.$site.'contact.php">'.$idem_txt0208.'</a>
 
 
 
	</div>
 
 
 
	<div class="foot_d">
 
	</div>
 
 
 
 
 
	</div>
 
 
 
	</div>
 
 
 
 
 
	</body>
 
</html>';
la ligne 101 correspond à cette partie de code

Code :
1
2
3
4
5
6
7
8
9
 
 
 
.textalignl
{
 
textalign:left;
 
}
là ou il y .textalignl



Merci d'avance pour votre aide.
sam01 est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 27/09/2011, 08h08   #2
Rédacteur
 
Avatar de jreaux62
 
Homme Jérôme Réaux
Webdesigner
Inscription : août 2008
Messages : 2 994
Détails du profil
Informations personnelles :
Nom : Homme Jérôme Réaux
Âge : 45
Localisation : France, Pas de Calais (Nord Pas de Calais)

Informations professionnelles :
Activité : Webdesigner
Secteur : Arts - Culture

Informations forums :
Inscription : août 2008
Messages : 2 994
Points : 5 787
Points : 5 787
Envoyer un message via Skype™ à jreaux62
Bonjour,
En fait, l'erreur se trouve au début de cette ligne : (manque un point)
Citation:
'.$txt0230.$dataa['prenom'].' '.$dataa['nom'].','.$txt0231.$dataa['mdp'].'<br /><br /><span class="textalignl">'.$txt0244.'<br />'.$txt0244_bis.'<br /><a href="'.$site.'">SWAPnFLY</a></span>
__________________
"Ce qui se conçoit bien s'énonce clairement - Et les mots pour le dire arrivent aisément."
Nicolas Boileau-Despréaux, Homme de lettres français (1636-1711), principal théoricien de l'esthétique classique.
Site perso Mes tutos DVP : Gestion-Affichage de Nouvelles - Affichage en tableau HTML - Fonctions de redimensionnement d'images
jreaux62 est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 27/09/2011, 09h52   #3
Membre confirmé
 
Inscription : mars 2004
Messages : 1 187
Détails du profil
Informations forums :
Inscription : mars 2004
Messages : 1 187
Points : 233
Points : 233
Ha d'accord,

j'ai été induit en erreur par le numéro de ligne...


Merci jreaux62.
sam01 est déconnecté   Envoyer un message privé Réponse avec citation 00
Réponse Proposer ce sujet en actualité Cette discussion est résolue.
Outils de la discussion



Fuseau horaire GMT +2. Il est actuellement 22h44.


 
 
 
 
Partenaires

Hébergement Web