Ver Mensaje Individual
  #5 (permalink)  
Antiguo 21/03/2013, 09:25
leon_iturra
 
Fecha de Ingreso: noviembre-2012
Ubicación: santiago
Mensajes: 23
Antigüedad: 12 años, 4 meses
Puntos: 0
Respuesta: Como mostrar un mensaje de alert

Código PHP:
Ver original
  1. <?php
  2. $fecha = date("Y-m-d");
  3. $result = mysql_query("select max(fecha_cotizacion) from cotizacion");
  4. $resultado = mysql_result ($result, 0);
  5. if ($fecha > $resultado){?>
  6. <script>
  7. alert('Favor modificar Cotizaciones'
  8. </script>";
  9. <?header("Location: cotizacion.php");
  10. exit();
  11. }else {
  12. echo "<script languaje='javascript'>alert('Ya se modificaron Cotizaciones')</script>";
  13. header("Location: welcome.php");
  14. }
  15. ?>



prueba eso