Parse error: syntax error, unexpected T_ECHO
iymohammed
-
iymohammed Messages postés 6 Date d'inscription Statut Membre Dernière intervention -
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>
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>
A voir également:
- Parse error: syntax error, unexpected T_ECHO
- Eespt technical error ✓ - Forum TNT / Satellite / Réception
- Pointage antenne ✓ - Forum TNT / Satellite / Réception
- Fan error lenovo - Forum PC portable
- A disk read error occurred ✓ - Forum Windows
- Error 1962 ✓ - Forum PC fixe
1 réponse
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>
ça fonctionne à merveille
bonne journée et merci encore