Ver Mensaje Individual
  #4 (permalink)  
Antiguo 06/06/2010, 02:27
Avatar de berper
berper
 
Fecha de Ingreso: abril-2009
Ubicación: Mexico
Mensajes: 74
Antigüedad: 15 años
Puntos: 2
Respuesta: buscador interno con php, ayuda

Prueba con esto:

Código PHP:
 // Enviamos un mensaje
    // indicando la cantidad de resultados ($totalRows)
    // para la frase busada ($frase)
    
if(!empty($totalRows)){
        echo 
stripslashes('<p>Se encontraron <strong>'.$totalRows.'</strong> resultados para <strong>'.$frase.'</strong></p>');        
        
// mostramos los resultados
        
while($row mysql_fetch_array($sqlBuscar)){
            echo 
'<strong><a href='.$row['noticiaurl'].'>'.$row['noticiaTitulo'].'</a></strong>';
            echo 
'<p>'.substr(strip_tags($row['noticiaNoticia']), 0255).'...</p>';
        } 
Suerte.
__________________
Administrador de El Mundo de Bob Esponja