|
|
|
|
Bonjour
j ai une erreur sur l une de mes page qui est :
Parse error: parse error, unexpected T_STRING, expecting ',' or ';' in /homepages/11/d141251743/htdocs/annonceswap/annonces.php on line 69
et voici ma ligne 69 :
echo "<center><font size=1>Script <a href='http://www.webfr.org\" target=\"_blank\"> Webfr.org</a></font></center>";
que faire ?!
Bonjour,
|
Voici a partir de la ligne 66
|
A href='http://www.webfr.org\'
johand@horus:~/src/php$ cat test.php <?php echo <<<MARQUEUR <a href="http://www.example.com/" > example.com </a> MARQUEUR; ?> http://be.php.net/manual/en/function.echo.php Gates gave you the windows. GNU gave us the whole house.(Alexandrin) |
Voici toute ma page
|
Et voila la page ou se trouve le script
|
Je crois avoir trouvé l'erreur. Il y a une accolade fermante en trop.
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
<title>Petites annonces</title>
<csscriptdict>
</head>
<body>
<font face="arial">
<b>
<table border="0" cellpadding="4" cellspacing="0" width="800" height="100%" bgcolor="white">
<tr>
<td valign="top">
<center>
<br>
<?
include("conf.php");
MYSQL_CONNECT($serveur,$login,$pass);
/* Prend le nom de lactivite dans la table numact*/
mysql_select_db("$base");
$query="select * from $table where rubrique='$cat' order by date desc";
$result=mysql_query($query);
$champs=mysql_num_fields($result);
$lignes=mysql_num_rows($result);
if ($lignes!=0)
{
while ($rows = mysql_fetch_array($result))
{
echo ("<table border='1' cellpadding='2' cellspacing='0' width='700'>
<tr>
<td>
<table border='0' cellpadding='0' cellspacing='0' width='700'>
<tr>
<td><b>$rows[1]</b></td>
<td align='right'>");echo date("j/m/Y",$rows[7]); echo ("</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>$rows[4]</td>
</tr>
<tr>
<td>
<table border='0' cellpadding='0' cellspacing='0' width='700'>
<tr>
<td>Email:<a href='mailto:$rows[3]'>$rows[3]</a></td>
<td align='right'>"); if ($rows[6]!=0) {echo"Tel:$rows[6]";
} /* CETTE ACCOLADE DOIT ETRE EN TROP */
echo ("</td>
</tr>
</table>
</td>
</tr>
</table>
<br>
");
}
echo "</tr></table>";
echo "<br><br>
<center><a href='javascript:history.back()'>Retour</a></center>";
}
else {echo "Il n'y a pas d'annonce correspondant à cette rubrique<br><br><center><a href='javascript:history.back()'>Retour</a></center></tr></table>";}
echo "<center><font size=1>Script <a href='http://www.webfr.org\" target=\"_blank\"> Webfr.org</a></font></center>";
//mysql_free_result($result);
mysql_close() ;
?>
</font>
</body>
Darkhorkeu |
Merci de m'aider
|