OK - now I have this -
<?php
$content=$row_rsContent['archContent'];
foreach ($row_Recordset1 as $jargon) {
echo $jargon."<br>";
$content=str_replace($jargon,'<span
style="background-color:yellow;">'.$jargon.'</span>',$content);
$content=str_replace(ucfirst($jargon),'<span
style="background-color:yellow;">'.ucfirst($jargon).'</span>',$content);
}
echo $content;
?>
But it doesn't seem to be do the 'foreach' properly. I only
get the first
element of the associative array. Would I need to convert it
to a numeric
array?
--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"Murray *ACE*" <forums@HAHAgreat-web-sights.com> wrote
in message
news:ermpep$elq$1@forums.macromedia.com...
> Duh. I suppose that makes sense.... 8)
>
> --
> Murray --- ICQ 71997575
> Adobe Community Expert
> (If you *MUST* email me, don't LAUGH when you do so!)
> ==================
>
http://www.dreamweavermx-templates.com
- Template Triage!
>
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
>
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
>
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
> ==================
>
>
> "gareth" <support@nospam_phploginsuite.co.uk>
wrote in message
> news:ermo6s$d72$1@forums.macromedia.com...
>> $content=$row_rsContent['archContent'];
>> foreach ($row_Recordset1 as $jargon) {
>> str_replace($jargon,'****',$content);
>> }
>>
>> Your not putting the result of str_replace anywhere,
it has to be
>> assigned to a variable so it can be used
>>
>> eg $new_text = str_replace($jargon,'****',$content);
>>
>> --
>> Gareth
>>
http://www.phploginsuite.co.uk/
>> PHP Login Suite V2 - 34 Server Behaviors to build a
complete Login
>> system.
>>
>
>