Ok, what i want to do, is to verify in the database, if exist the Product_id that the user is typing, this verification i want to do it after the user type the data into the field 'codigo'
if the data exist in the database i going to show the Descripcion of the codigo.
but when i try to it, it does not work.
example
<td width="7%"><div align="left">Codigo</div></td>
<td width="12%"><div align="left">
<input name="codigo" type="text" size="15" />
</div></td>
<?php
if ($v_codigo =$codigos):
echo "codigo found in to the database";
else:
echo "it does not exist";
exit;
endif;
?>
<td width="2%"> </td>
<td colspan="3"><div align="left">
<input name="descrip" type="text" size="70" id="descrip" value="<?php echo $lineactualiza['codigo']?>" />
</div></td>
<td width="2%"> </td>
</tr>
<tr>
<th scope="row"> </th>
<td colspan="2"><div align="left">Existencia Actual </div></td>
<td> </td>
<td width="18%"><div align="left">
<input type="text" name="existencia" id="existencia" value="<?php echo $lineactualiza['existencia']?>" />
astions wrote:Can you clarify your question?