Bonjour,
je suis ignare en programmation php ou java.
en regardant via l'interface de mon hébergeur le site de mon entreprise, j'ai appuyé sur enregistrer et quelquechose a dû changer parce que j'ai ce message :
Parse error: syntax error, unexpected '"', expecting ',' or ';' in
/var/www/vhosts/www.agrotech.fr/web/index.php on line
41je n'y connais rien et je suis sur le bout en question depuis 2 heures...pouvez vous me dépanner?? c'est très important pour mon école) merci d'avance..
voici le code du fichier index.php :
<head>
<title>Lycée </title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta http-equiv="content-language" content="fr">
<meta name="title" content="Lycée ">
<meta name="description" content="Le Lycée .">
<meta name="abstrac" content="Lycée ">
<meta name="keywords" content="ecole">
<meta name="identifier-url" content="http://www.exemple.fr">
<meta name="category" content="school">
<meta name="rating" content="general">
<meta name="language" content="fr">
<meta name="author" content="">
<meta name="copyright" content="">
<meta name="geography" content="">
<meta name="date-creation-yyyymmdd" content="20040625">
<meta name="date-revision-yyyymmdd" content="20040702">
<meta name="expires" content="never">
<meta name="revisit-after" content="15 days">
<meta name="robots" content="all">
<link rel="stylesheet" href="agro_style.css" type="text/css" />
<SCRIPT LANGUAGE=Javascript SRC="script/fct_agro.js"></SCRIPT>
<?php
include('conn.php');
$select_txt_defilant = "SELECT * FROM partie WHERE PART_ID = 8";
$res_txt_defilant = mysql_query($select_txt_defilant);
$row_txt_defilant = mysql_fetch_array($res_txt_defilant);
if (!empty($row_txt_defilant['PART_TXT_DEFIL'])) {
echo "
<SCRIPT LANGUAGE=Javascript SRC='script/fct_agro.js'></SCRIPT>";
echo "
<script language='javascript'>
var position=0;
var msg=".$row_txt_defilant['PART_TXT_DEFIL']."";
var msg=" "+msg
var long=msg.length
var fois=(110/msg.length)+1;
for(i=0;i<=fois;i++) msg+=msg;
function textdefil() {
document.form.deftext.value=msg.substring(position,position+110);
position++;
if(position == long) position=0;
setTimeout('textdefil()',100);
}
</script>";
$load = "onLoad="textdefil()"";
}
else {
$load = "";
}
?>
</head>
<body leftmargin="0" rightmargin="0" marginwidth="0" marginheight="5" <? echo $load;?>>
<table width="100%" height="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td valign="middle">
<TABLE width=760 height=550 BORDER=0 ALIGN="center" CELLPADDING=0 CELLSPACING=0>
<tr>
<td width="760" height="550" cellpadding="0" cellspacing="0">
<table class="general" border=0 CELLPADDING=1 CELLSPACING=1>
<tr>
<td align=top><?php barre_haut_anim();?></td>
</tr>
<tr>
<td><div id="spip_menu"><?php public_menu();?></div></td>
</tr>
<td>
<table cellspacing="0" cellpadding="0">
<tr>
<?php
include('conn.php');
$select = "SELECT * FROM partie where PART_ID=8";
$req = mysql_query($select);
$rows = mysql_fetch_array($req);
?>
<td valign="top" align="top"><table class="partg" border=1 bordercolor="#398E61"><tr><td><table class="partie_gauche" BORDER=0 bordercolor="#398E61"><tr><td class="image"><?php image();?></td></tr><tr><td><?php if (isset($rows['PART_GSSTITRE'])) { echo "<img src='img/bt_vert.jpg'><font color=#933524 face=Impact> ".$rows['PART_GSSTITRE']."</font>";}?></td></tr><tr><td valign="top"><font size="2"><?php if (isset($rows['PART_GTXT'])) { echo display($rows['PART_GTXT']);}?></font></td></tr><tr><td align="center">
<?php
$select_actu = "SELECT * FROM actus WHERE ACTU_DATE_EXP > NOW()";
$res_actu = mysql_query($select_actu);
if ($row_actu = mysql_fetch_array($res_actu)) {
actu();
}
?></td></tr></table></td></tr></table></td>
<td> </td>
<td width="700" valign="right" align="right"><table border=1 class="frame_principale" bordercolor="#398E61" background="img/Img_fond_accueil.jpg" ><tr><td><div id="includeA"><?php include "template/accueil.php";?></div></td></tr></table></td>
</tr>
</table>
</td>
</tr>
<tr>
<td valign="middle"> </td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>
<?
//<a href="index.php"><font color=#933524 style="font-family:Impact"> Accueil</font></a> <a href="javascript:history.go(-1)"><font color=#933524 style="font-family:Impact">Retour</font></a>
?>