![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
02/09/2006, 12:04
|
| | Fecha de Ingreso: agosto-2006
Mensajes: 10
Antigüedad: 18 años, 5 meses Puntos: 0 | |
espero y me explique mejor espeero ser mas explicito con esto:
este es parte del codigo:
</table></th>
</tr>
<tr>
<th scope="col"><div align="right">Material :</div></th>
<th scope="col"> </th>
<th height="38" scope="col"><div align="left">
<table width="369" height="117" border="0" cellpadding="0" cellspacing="0">
<tr>
<? $sql = 'Select material From material where id_producto= '.$row ["id_producto"].' and material = "Herreria"';
$result=mysql_query($sql);
$row19=mysql_fetch_array($result) ?>
<? if ($row19['material'] == "Herreria" ) { ?>
<td height="39"><input type="checkbox" name="material[]" value="Herrería" checked="checked" />
Herrería </td>
<? } else { ?>
<td height="39"><input type="checkbox" name="material[]" value="Herrería" />
Herrería </td>
<? } ?>
<? $sql = 'Select material From material where id_producto= '.$row ["id_producto"].' and material = "Madera"';
$result=mysql_query($sql);
$row20=mysql_fetch_array($result) ?>
<? if ($row20['material'] == "Madera" ) { ?>
<td><input type="checkbox" name="material[]" value="Madera" checked="checked"/>
Madera </td>
<? } else { ?>
<td><input type="checkbox" name="material[]" value="Madera" />
Madera </td>
<? } ?>
<? $sql = 'Select material From material where id_producto= '.$row ["id_producto"].' and material = "Granito/Cuarzo"';
$result=mysql_query($sql);
$row21=mysql_fetch_array($result) ?>
<? if ($row21['material'] == "Granito/Cuarzo" ) { ?>
<td><input type="checkbox" name="material[]" value="Granito/Cuarzo" checked="checked"/>
Granito/Cuarzo</td>
<? } else { ?>
<td><input type="checkbox" name="material[]" value="Granito/Cuarzo" />
Granito/Cuarzo</td>
<? } ?>
</tr>
<tr>
donde desde un menu desplegable se escoge un producto y se carga los checkbox dependiendo su estado activo o inactivo, lo que quiero es poder cambiar sus estados. |