Ver Mensaje Individual
  #12 (permalink)  
Antiguo 14/11/2009, 00:58
Avatar de urgido
urgido
 
Fecha de Ingreso: febrero-2005
Mensajes: 2.351
Antigüedad: 19 años, 2 meses
Puntos: 25
Respuesta: ¿Cómo puedo Filtrar una búsqueda en PHP?

Código PHP:
Ver original
  1. <?php
  2. $q=mysql_query("SELECT * FROM estudiantes");
  3. while($r=mysql_fetch_array($q)){
  4.  $rest=substr($r['Matricula'], -6);
  5.  $valor[]=$rest;  
  6. }
  7. $sigue=max($valor);
  8. $next=$sigue+1;
  9. echo $next;
  10. ?>


mmm checale así
__________________
Hospedaje Web al mejor costo!