Ver Mensaje Individual
  #5 (permalink)  
Antiguo 14/03/2016, 00:06
byrong
 
Fecha de Ingreso: enero-2016
Ubicación: Venezuela
Mensajes: 139
Antigüedad: 8 años, 3 meses
Puntos: 3
Respuesta: Problema en array

Cita:
Iniciado por xfxstudios Ver Mensaje
alli estariamos pasando la id oculta en el form
Bro lo puse como dijiste y me sigue enviando los dos:
Código PHP:
  <tr>
                <
td>Id'.$mostrarvencimiento['id'].' IdE'.$mostrarvencimiento['idestado'].'</td>
                <
td>'.$mostrarvencimiento['nombreempresa'].'</td>
                <
td>'.$mostrarvencimiento['fechavencimiento'].'</td>
                <
td>
                 
'.$mostrarvencimiento['telefonoadmin'].'</td>
                <
td><form method="post" action="recibir.php"><input type="submit" value="3 Meses" name="3meses" id="3meses"><input type="submit" value="6 Meses" name="6meses" id="6meses">
                <
input type="submit" value="1 Año" name="12meses" id="12meses"><input type="hidden" name="id" value="'.$mostrarvencimiento['id'].';"></td></form>
              </
tr
La Query está así:
Código PHP:
 while($mostrarvencimiento mysql_fetch_assoc($mostrarfecha))
         {
          if(isset(
$_POST['3meses'])){
      
$fechavencimiento mysql_real_escape_string($_POST['id']);
      
$query3mesmysql_query("UPDATE empresas SET fechavencimiento = date_add(fechavencimiento,interval 3 month) where id = ".$mostrarvencimiento['id']." LIMIT 1"); 
Que puedo hacer? estoy recibiendo de manera incorrecta en la query?