Ver Mensaje Individual
  #1 (permalink)  
Antiguo 26/05/2013, 14:54
andres_py
 
Fecha de Ingreso: mayo-2013
Ubicación: Asuncion
Mensajes: 2
Antigüedad: 11 años
Puntos: 0
Actualizar un formulario php

tengo tres formulario en una pagina en php
1) es la cabecera de una venta
2) tiene la busqueda de los productos
3)el detalle de los productos que voy agregando, pero no puedo lograr recargar solamente el formulario de detalles para que me muestre lo q voy cargando... ayudenme amigos.

la pregunta,, como recargo una consulta sql para mostrar los datos que voy agregando?
o como puedo recargar solo este form?

<form name="frmDet" id="frmDet">
<?php
//function verdatos(){
//mysql_select_db($database_db_gco, $db_gco);
$query_jrVertemp = "SELECT TEM_CODIGO, TEM_DESCR, TEM_CANT, TEM_IVA, TEM_PRECIO, TEM_TOTAL FROM tem_detventa";
$jrVertemp = mysql_query($query_jrVertemp, $db_gco) or die("ocurrio error");
$row_jrVertemp = mysql_fetch_assoc($jrVertemp);
//}
?>
<fieldset>
<table border="1" align="right" cellpadding="0" cellspacing="0">

<?php do { ?>
<tr>
<td width="50"><?php echo $row_jrVertemp['TEM_CODIGO']; ?></td>
<td width="100"><?php echo $row_jrVertemp['TEM_DESCR']; ?></td>
<td width="30"><?php echo $row_jrVertemp['TEM_CANT']; ?></td>
<td width="30"><?php echo $row_jrVertemp['TEM_PRECIO']; ?></td>
<td width="84"><?php echo $row_jrVertemp['TEM_TOTAL']; ?></td>
<td width="15"><input type="button" name="btndel" id="btndel" value="del " /></td>
</tr>
<?php } while ($row_jrVertemp = mysql_fetch_assoc($jrVertemp)); ?>
</table>
</fieldset>
</form>