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!!