ojala me puedan ayudar
un saludo..
Código PHP:
<div id="incontent_left_up" style="width:675px ">
<?php
include("cn/cn.php");
$myctg=mysql_query("select * from misbiclas") or die("Hubo un error en la consulta");
?>
<form name="form1" method="post" action="">
<table width="600" border="0" cellspacing="0" cellpadding="0">
<?php
while($my_categoria=mysql_fetch_array($myctg)){
$x++;
?>
<tr>
<td width="350"><?php print $my_categoria['bb_categoria']; ?></td>
<td width="150">
<select name="categoria_s<?php print $my_categoria['bb_id']; ?>" onChange="Suma(this.value,this.value,'r_<?php print $my_categoria['bb_id']; ?>'),copiaValor(this,'r_<?php print $my_categoria['bb_id']; ?>');">
<option value="0" selected>Seleccionar</option>
<?php
$myprt=mysql_query("select * from bb_partes where id_categoria='$my_categoria[bb_id]'") or die("Hubo un error en la consulta");
while($my_part=mysql_fetch_array($myprt)){
$x++;
?>
<option value="<?php print $my_part['precio']; ?>"><?php print $my_part['name']; ?></option>
<?php
}
?>
</select>
</td>
<td width="100"><input type="text" id="r_<?php print $my_categoria['bb_id']; ?>"></td>
</tr>
<?php
}
?>
<tr>
<td width="350">Tallas</td>
<td width="150">
<select name="mytallax">
<option value="" selected> [ Seleccionar ] </option>
<option value="">15 - 16 (S)</option>
<option value="">17 - 18 (M)</option>
<option value="">18 - 20 (L)</option>
<option value="">21 - 22 (XL)</option>
</select>
</td>
<td width="100"><input type="text" name="mytalla"></td>
</tr>
<tr>
<td colspan="3"><input type="text" name="total" size="8" value="0"></td>
</tr>
</table>
</form>
</div>