Bonjour,

Depuis quelque temps ce message apparaît sur certaines pages de mon site web, en voici un exemple (je n'ai pas développé le site mais possède des notions en php):
Parse error: syntax error, unexpected '{' in /home/immo/public_html/location.php on line 1
Voici le code en question de la page :
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
<?php include('include/connection.php');?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
  <head>
    <meta name="generator"
    content="HTML Tidy for HTML5 (experimental) for Windows https://github.com/w3c/tidy-html5/tree/c63cc39" />
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>IMMORAK - Location <?php if (isset($_GET['type'])) echo ucfirst($_GET['type']); ?></title>
    <link rel="stylesheet" type="text/css" href="css/general.css" />
    <link rel="stylesheet" type="text/css" href="css/autre.css" />
    <link rel="icon" type="image/ico" href="immorak.ico" />
    <!-- selectbox -->
    <link rel="stylesheet" type="text/css" href="selectbox/selectbox.css" />
    <script src="js/jquery.js" type="text/javascript" charset="utf-8"></script>
    <script type="text/javascript" src="selectbox/jquery.selectbox-0.5.js"></script>
    <script type="text/javascript">
            $(document).ready(            function() { $('#Items1').selectbox(); }        );            $(document).ready( 
          function() { $('#Items2').selectbox(); }        );            $(document).ready(            function() {
$('#Items3').selectbox(); }        );            $(document).ready(            function() {
$('#Items4').selectbox(); }        );            $(document).ready(            function() {
$('#Items5').selectbox(); }        );            $(document).ready(            function() {
$('#Items6').selectbox(); }        );        
</script>
    <!-- selectbox -->
  </head>
  <body>
    <div id="all">
      <?php                   include('include/top.php');               ?>
      <div id="boddy">
        <?php                           include('include/left_bar.php');                          ?>
        <div id="righta" style="width: 744px;">
          <?phpif (isset($_GET['type'])) {$type = $_GET['type'];$query1 = "SELECT * FROM produits where type='$type' and transaction='location'";$doquery1 = mysql_query($query1) or die ("Error mysql Query ");$Num_Rows = mysql_num_rows($doquery1);$Per_Page = 4;   if (!isset($_GET['Page'])) {    $Page = 1;} else {    $Page = $_GET['Page'];}$Prev_Page = $Page - 1;$Next_Page = $Page + 1;$Page_Start = (($Per_Page * $Page) - $Per_Page);if ($Num_Rows <= $Per_Page) {    $Num_Pages = 1;} elseif (($Num_Rows % $Per_Page) == 0) {    $Num_Pages = ($Num_Rows / $Per_Page) ;} else {    $Num_Pages = ($Num_Rows / $Per_Page) + 1;    $Num_Pages = (int) $Num_Pages;}$query = "SELECT * FROM produits where type='$type' and transaction='location' order by id DESC LIMIT $Page_Start , $Per_Page ";$doquery = mysql_query($query);//pagination 1        echo' <div class="pagination">                        <div class="pagination_titre"><b>Location</b> / <b>'.ucfirst($type).'</b> / '.$Num_Rows.' produits</div>                        <div class="num_pages">                                                  ';if ($Num_Rows > $Per_Page) {           for ($i=1; $i <= $Num_Pages; $i++) {                    if ($i != $Page) {                              echo '<a href="vente.php?type='.$type.'&Page='.$i.'" >'.$i. '</a>';                     } else {                                echo $i;                        }                                               if ($i != $Num_Pages) {                         echo ' - ';                     }                                       }                               }                                       echo '</div></div><div style="clear: both; overflow: hidden;">';if($Num_Rows > 0){ while ($row = mysql_fetch_array($doquery))   {               echo'                   <div class="produit">                                                           <div class="img_prod">                                                          <a href="show.php?id='.$row['id'].'">';                                                         if($row['nouveau'] == 'oui'){echo'<div class="neww" ><img src="images/new.png"></div>';}                                                                if($row['exclusivite'] == 'oui'){echo'<div align="right" class="exclus" ><img src="images/exclu.png"></div>';}                                                                  echo '<img src="produits/'.$row['img'].'">                                                              </a>                                                            </div>                                                          <div class="right_prod">                                                                        <div class="right_text">                                                                                <div class="titre2">'.stripslashes($row['nom']).'</div>                                                                         Ref. : '.$row['id'].'<br>                                                                               Ville : '.stripslashes($row['ville']).'<br>                                                                             Prix : '.stripslashes($row['prix_euro']).'<br>                                                                          Prix : '.stripslashes($row['prix_dh']).'<br>                                                                            Chambre(s) : '.$row['chambres'].'<br>                                                                           Surface Hab : '.$row['surface'].'<br>                                                                   </div>                                                                  <a href="show.php?id='.$row['id'].'" class="visiter">Visiter ce produit</a>                                                             </div>                                                   </div>         ';                      }}else{ echo '<span style="color: #b94203; padding-left: 27px;">Aucun produit disponible ici pour le moment</span><br><br>';}//pagination 2     echo'</div>                    <div class="pagination" style="margin-top:0;">                        <div class="pagination_titre"><b>Location</b> / <b>'.ucfirst($type).'</b> / '.$Num_Rows.' produits</div>                        <div class="num_pages">                                                  ';if ($Num_Rows > $Per_Page) {            for ($i=1; $i <= $Num_Pages; $i++) {                    if ($i != $Page) {                              echo '<a href="vente.php?type='.$type.'&Page='.$i.'" >'.$i. '</a>';                     } else {                                echo $i;                        }                                               if ($i != $Num_Pages) {                         echo ' - ';                     }                                       }                               }                                       echo '</div>                            </div>';                                }?>
          <img src="images/horizons.png" style="margin-top: 15px;" />
        </div>
        <!-- end righta -->
      </div>
      <!-- end body --><?php                       include('include/footer.php');            ?>
    </div>
    <!-- end all -->
  </body>
</html>
site web: www.immorak.com

Merci beaucoup de votre aide !