de ce code :
Je suis passer à :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5 $r=q("select me.login, me.id, me.fname, me.lname, me.city, me.country, me.state, (YEAR(CURRENT_DATE)-YEAR(pr.birthdate)) - (RIGHT(CURRENT_DATE,5)<RIGHT(pr.birthdate,5)) as age from members me, profiles pr where me.id=pr.id and $sql_period order by pr.ldate desc LIMIT 0,$lnr_mo"); if (!e($r)){ echo "<TABLE width=90% BORDER=0 CELLPADDING=0 CELLSPACING=0 align=center valign=top>"; echo "<tr><td><b>Nick</b></td><td><b>Name</b></td><td><b>Location</b></td><td><b>Age</b></td></tr>"; while ($m=f($r)){echo "<tr><td><a href=mem.php?mid=$m[id]>$m[login]</a></td><td>$m[fname]</td><td>$m[country]</td><td>$m[age]</td></tr>";};echo "</TABLE>";};?>
et j'ai cette erreur :
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 $r=q("select me.login, me.id, me.fname, me.lname, me.sex, me.city, me.country, me.state, (YEAR(CURRENT_DATE)-YEAR(pr.birthdate)) - (RIGHT(CURRENT_DATE,5)<RIGHT(pr.birthdate,5)) as age from members me, profiles pr where me.id=pr.id and $sql_period order by pr.ldate desc LIMIT 0,$lnr_mo"); ($m=f($r)); if (!e($r) && $m[sex]=="Homme") { echo "<TABLE width=90% BORDER=0 CELLPADDING=0 CELLSPACING=0 align=center valign=top>"; echo "<tr><td><b>Pseudo</b></td><td><b>Prenom</b></td><td><b>Ville</b></td><td><b>Age</b></td></tr>"; while echo "<tr><td><a href=mem.php?mid=$m[id]>$m[login]</a></td><td>$m[fname]</td><td>$m[city]</td><td>$m[age]</td></tr></TABLE>"; } elseif (!e($r) && $m[sex]=="Femme") { echo "<TABLE width=90% BORDER=0 CELLPADDING=0 CELLSPACING=0 align=center valign=top>"; echo "<tr><td><b>Pseudo</b></td><td><b>Prenom</b></td><td><b>Ville</b></td><td><b>Age</b></td></tr>"; while echo "<tr><td><a href=mem.php?mid=$m[id]>$m[login]</a></td><td>$m[fname]</td><td>$m[city]</td><td>$m[age]</td></tr></TABLE>"; } ?>Où est l'erreur ?Parse error: parse error, unexpected T_ECHO, expecting '(' in /homepages/33/d140741298/htdocs/rencontre/inc/m_online.php on line 14
Merci.
Partager