php - If statement to use <a href one> else use <a href two> -


what i'm trying form $id less 50 use href else use href. have far have no idea how include since has php in href. how can make work. 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> 

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

Comments

Popular posts from this blog

php - SPIP: From Tag directly to an article -

jquery - isAjaxRequest always return false -

ruby on rails - In a controller spec, how to find a specific tag in the generated view? -