Ver Mensaje Individual
  #5 (permalink)  
Antiguo 10/05/2014, 15:56
Avatar de TSG
TSG
 
Fecha de Ingreso: septiembre-2013
Ubicación: España
Mensajes: 373
Antigüedad: 10 años, 7 meses
Puntos: 9
Respuesta: Problema con While

Cita:
Iniciado por dashtrash Ver Mensaje
Y has incluido la comparacion a if(isset($_POST['report'])){ ?
$_POST['report']==$yu1["id"]
Lo acabo de poner pero sigue igual lo inserta todos:

Código PHP:
Ver original
  1. <form action='' method='POST'>
  2.               <input type='submit' name='report' class='my_33' value='".$yu1['id']."'/>
  3.               </form>
  4.  
  5. if(isset($_POST['report']) == $yu1['id']){
  6.             $h1 = mysqli_query($conexion, "INSERT INTO dui(texto) VALUES ('".$yu1['comentario']."')")or die(mysqli_error($conexion));
  7.         }

Saludos.