Ver Mensaje Individual
  #2 (permalink)  
Antiguo 18/06/2007, 13:51
Avatar de lilith_sr
lilith_sr
 
Fecha de Ingreso: enero-2007
Ubicación: México
Mensajes: 113
Antigüedad: 17 años, 3 meses
Puntos: 2
Re: Alerta en PHP al no hallar registros

tal ves esto pueda ser de ayuda
Código PHP:
<?
$consultaInformacion
=("SELECT * FROM tabla where dato='tu dato'");
                             
    
$row mysql_fetch_array($consultaInformacion);
    if(
$row=0)
    {
    
?>
        <script languaje="javascript">
            function Validar()
            {
                alert('¡¡¡No existe el Regristo!!!'); 
                window.location='tupagina.php';
            }
            Validar();
        </script>
    <?
    
}
?>