lundi 10 mars 2014

If statement to use else use


Vote count:

0




What I'm trying to do is that any form with the $id that is less than 50 to use a certain A href else use another A href. This is what I have so far but I have no idea how to include it since it has php with in the href. How can I make this work. Thanks in advance.



</td>
<td>
<?php if($id <= 50) {
<a href="<?=$row[form_type]?>.php?id=<?=$row[id]?>&form=<?=$row[form_type]?>&***template***=true"><?=$row[software]?></a>
}
else {
<a href="<?=$row[form_type]?>.php?id=<?=$row[id]?>&form=<?=$row[form_type]?>&***modify***=true"><?=$row[software]?></a>
}
?>
</td>


asked 1 min ago






Aucun commentaire:

Enregistrer un commentaire