Parse error: syntax error, unexpected T_ECHO

iymohammed -  
iymohammed Messages postés 6 Date d'inscription   Statut Membre Dernière intervention   -
Bonjour,

pouvez vous me corriger ce code:

<td><?php echo $row_rsPages['pg_link']; ?></td>
<td><?php echo $row_rsPages['nav_name']; ?></td>
<td><?php if(in_array($row_rsPages['pg_id'],$restrict)) (echo' ';) else(?><a href="pages_remove_confirm.php?id=<?php echo $row_rsPages['pg_id']; ?>">Remove</a><?php )?></td>

1 réponse

  1. dariumis Messages postés 583 Statut Membre 63
     
    Salut, peut etre comme ça:
    <td><?php echo $row_rsPages['pg_link']; ?></td>    
    <td><?php echo $row_rsPages['nav_name']; ?></td>    
    <td><?php    
         if(in_array($row_rsPages['pg_id'],$restrict))    
             echo '';    
         else{ ?>    
            <a href="pages_remove_confirm.php?    
            id=<?php echo $row_rsPages['pg_id']; ?>">    
                Remove    
           </a> 
        <?php } ?> 
    </td>    
    
    0
    1. iymohammed Messages postés 6 Date d'inscription   Statut Membre Dernière intervention  
       
      merci beaucoup
      ça fonctionne à merveille
      bonne journée et merci encore
      0