par
msi79 » 25 janv. 2014, 17:20
@moogli je comprend pas .
je veux faire et avec les bouton ration ou checkbox
voici ce que j'ai tenté de faire qui ne marche pas :
//AFFICHER LES PREJUDICES MATERIELS
$q_PM = mysql_query("SELECT * FROM prejudicemateriel WHERE id_prejMat = '".$id."' ") or die(mysql_error());
$row_PM = mysql_fetch_assoc($q_PM);
echo '<table width="200" border="0">
<tr>
<td> <input type="radio"
name="nomduradio"
value="valueduradio"
<?php if($row_PM["pejudiceMateriels1"] == true) { echo "checked=checked";} ?>
/></td>
</tr>
</table>';
@moogli je comprend pas .
je veux faire et avec les bouton ration ou checkbox
voici ce que j'ai tenté de faire qui ne marche pas :
[php] //AFFICHER LES PREJUDICES MATERIELS
$q_PM = mysql_query("SELECT * FROM prejudicemateriel WHERE id_prejMat = '".$id."' ") or die(mysql_error());
$row_PM = mysql_fetch_assoc($q_PM);
echo '<table width="200" border="0">
<tr>
<td> <input type="radio"
name="nomduradio"
value="valueduradio"
<?php if($row_PM["pejudiceMateriels1"] == true) { echo "checked=checked";} ?>
/></td>
</tr>
</table>';
[/php]