Ver Mensaje Individual
  #8 (permalink)  
Antiguo 14/11/2009, 00:22
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. <?
  2. $q=mysql_query("SELECT * FROM tabla ORDER BY serie DESC");
  3. while($r=mysql_fetch_array($q)){
  4.  $valor[]=$r['serie'];
  5.  $rest=substr($valor, -6);
  6.  $sigue=max($valor);
  7.  $next=$sigue+1;
  8.  echo $next;
  9. }
  10. ?>

checalo... ponle tus parámetros.
__________________
Hospedaje Web al mejor costo!