Ver Mensaje Individual
  #7 (permalink)  
Antiguo 14/01/2008, 14:36
usermax
(Desactivado)
 
Fecha de Ingreso: diciembre-2006
Mensajes: 529
Antigüedad: 17 años, 5 meses
Puntos: 11
Re: Resaltar palabra buscada

Prueba así:
Código PHP:
  //Leemos y escribimos los registros de la página actual
 
$salida "<table>";
 
    while(
$row mysql_fetch_array($_pagi_result))
    {
 
$salida .= "<tr>
            <th>"
.$row["Apellido"]."</th>
            <td>"
.$row["Nombre"]."</td>
            <td>"
.$row["Nacimiento"]."</td>
            <td>"
.$row["Fallecimiento"]."</td>
            <td>"
.$row["Edadfallece"]."</td>
            <td>"
.$row["Tiempofallece"]."</td>
            <td>"
.$row["Edadhoy"]."</td>
            <td>"
.$row["Url"]."</td>
        </tr>"
;
}
 
$salida .= "</table>";
 
mysql_free_result($_pagi_result);
mysql_close($link);
// Pintemos
$salida str_replace($nombre"<span class='resaltado'>$nombre</span>",$salida);
 
print 
$salida



Me cuentas.
Saludos