Ver Mensaje Individual
  #1 (permalink)  
Antiguo 07/01/2010, 15:05
anwardacosta
(Desactivado)
 
Fecha de Ingreso: septiembre-2009
Mensajes: 26
Antigüedad: 14 años, 8 meses
Puntos: 0
Exclamación mensaje en mysql con registro que contenga un numero determinado

TENGO UNA CONSULTA, QUE DEBE HACER LO SGTE: SELECCIONAR LOS REGISTROS DE LA TABLA ACTIVOS DEL CAMPO CANTIDAD Q CONTENGAN EL NUMERO 1 Y ARROJAR UN MENSAJE

$consultaInformacion=("SELECT * FROM 'activo' where cantidad='1'");

$row = mysql_fetch_array($consultaInformacion);
if($row_Recordset1['cantidad']=1)
{
echo "<script>alert('Hay varios registros con stock minimo')</script>";

}
else
{
echo "<script>alert('No hay registros con stock minimo')</script>";
}

NO SE QUE ESTA MAL, ADEMAS DONDE LO PODRIA UBICAR YA QUE LO TENGO ES EN UNA FORMULARIO QUE REALIZA CONSULTAS Y LAS MUESTRA GRACIAS