This question already has an answer here:
- if block inside echo statement? 4 answers
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