Ver Mensaje Individual
  #2 (permalink)  
Antiguo 24/03/2006, 11:11
Avatar de claudiovega
claudiovega
 
Fecha de Ingreso: octubre-2003
Ubicación: Puerto Montt
Mensajes: 3.667
Antigüedad: 20 años, 6 meses
Puntos: 11
Segunda pregunta, con eso ya tienes como hacer la primera.

Código PHP:
<?php
    $sql
="select * from _regalumnos where miprofe='".$_POST['miprofe']."'";
    
$result=mysql_query($sql);
    if(isset(
$result) && mysql_num_rows($result)>=3)
    {
         
mail($_POST['miprofe'],$asunto,$mensaje);
    }
?>