dimanche 3 mai 2015

If condition in mixed html and php code [duplicate]

This question already has an answer here:

I mixed html and php but it doesn't work because of if condition. How make my if condition work in this code below?

PHP code

echo "<tr>
          <td>" . $linie['Text'] . "</td>
          <td><input type='radio' name='check".$i."' value='0' <? if($result1>0){ echo 'checked';} ?> onClick='disactive(".$i.")'></td>";

Aucun commentaire:

Enregistrer un commentaire