Ver Mensaje Individual
  #10 (permalink)  
Antiguo 23/07/2009, 10:31
Avatar de abimaelrc
abimaelrc
Colaborador
 
Fecha de Ingreso: mayo-2009
Ubicación: En el planeta de Puerto Rico
Mensajes: 14.734
Antigüedad: 15 años
Puntos: 1517
Respuesta: DUDA actualizacion limitacion.

Puedes hacerlo entonces asi
Código php:
Ver original
  1. mysql_connect("localhost","root","123456");
  2. mysql_select_db("numj");
  3.  
  4. $numero = $_POST['numero'];
  5. $canti = ($_POST['canti'] > 200 ? 200 : $_POST['canti']);
  6. $sSQL="Update numj Set canti=canti+ '$canti' Where numero='$numero'";
  7. mysql_query($sSQL);