Ver Mensaje Individual
  #5 (permalink)  
Antiguo 23/02/2009, 03:55
pcadict0
 
Fecha de Ingreso: abril-2008
Mensajes: 70
Antigüedad: 16 años, 1 mes
Puntos: 1
Respuesta: Repetir región

Wenas nuevamente.
Creo q ya sí q funciona y hace lo q debe d hacer correctamente

Este es el código, x si a alguien le pudiera interesar:

Código PHP:
            $i 0;
             while (
$row_buscar_general mysql_fetch_assoc($buscar_general)) 
{
$num $totalRows_buscar_general;
echo 
$row_buscar_general['localidad'];
  if (
$i == ($num-3)) 
   {
   echo 
" y ";
   }
  if (
$i == ($num-2)) 
   {
   echo 
". ";
   }   
  if (
$i < ($num-3)) 
  { 
   echo 
" , ";
  }
$i++;

Nuevamente muchísimas gracias David, sin tu ayuda jamás podría haberlo conseguido.

Salu2!!