Parse error: syntax error, unexpected T_ECHO

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. 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>    
    
    1. merci beaucoup
      ça fonctionne à merveille
      bonne journée et merci encore