PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
i thnk there is something wrong with my loop here because it repeats the same thing for the number of items in the database and doesnt move the array counters to set it to the new data is just used the stuff from the first run through of the loop so its not moving up the array counters in $data for some reason
no more '<DISPLAY: Subject>', .... in $news_settings['newsstyle'] after you assigned the result of replacing those patterns to it
Just skip assigning the result to a variable and echo it directly
<?php
$text = 'a';
$text = str_replace('a', 'b', $text);
// now $text=='b'
$text = str_replace('a', 'c', $text);
/*
the second str_replace does not find an [i]a[/i] in $text
since it already has been replaced by the first str_replace
and therefor ...
*/
// still $text=='b'
?>