Ver Mensaje Individual
  #4 (permalink)  
Antiguo 05/05/2016, 15:53
xerifandtomas
 
Fecha de Ingreso: octubre-2010
Ubicación: España
Mensajes: 1.007
Antigüedad: 13 años, 6 meses
Puntos: 123
Respuesta: Preparar declaracion

Código PHP:
Ver original
  1. // aquí tienes un error de sintaxis en el if
  2. if($stmt = $mysqli->prepare("SELECT password FROM inyeccion WHERE username = ?" AND time > '$valid_attempts')){....}
  3.  
  4.  
  5. // a ver así
  6. if( ($stmt = $mysqli->prepare("SELECT password FROM inyeccion WHERE username = ? ") )  AND time > $valid_attempts){....}

Edit:
Error mio , me corrijo, ahora si.
__________________
Unset($vida['malRollo']);

Última edición por xerifandtomas; 05/05/2016 a las 16:04