(Re-using an existing eighteen month old thread makes it more difficult to jump back to the start, and has no benefit when you're asking an entirely different question.)
Anyway, if you want to convert commas to image tags, then you can do it like this:
PHP code: $string = '<img src="' . replace( ',' , '" /><img src="' , $string ) . '" />';
or like this:
PHP code: $string = preg_replace( '(?:^|,)([^,]+)' , '<img src="$1" />' , $string );
(That one having the benefit of only needing to specifying the surrounding code once, although it may confuse people that don't understand regex.)
However, in most cases I'd probably do something similar to what Lucy posted (split and then foreach), because it makes things more flexible.
Any problems you're having there are most likely examples of why tables are not the right way to do layouts. :P |