My image links are each suppose to be displayed in bullet points. Problem is that it is displaying only one bullet points for all image links, rather than displaying a bullet point for each image link. What am I doing wrong in my php/html?\[code\]<table id="tableqanda" cellpadding="0" cellspacing="0"> <thead> <tr> <th width="11%" class="image">Image</th> </tr> </thead> </table> <div id="tableqanda_onthefly_container"> <table id="tableqanda_onthefly" cellpadding="0" cellspacing="0"> <tbody> <?php function CreateLink($filename, $type){ if($type == 'image'){ return '<a href="http://stackoverflow.com/questions/14543579/previewimage.php?filename='.$filename.'" title="Click to view in New window" target="_blank">'.htmlspecialchars($filename).'</a>'; }} foreach ($arrQuestionId as $key=>$question) { echo '<tr class="tableqandarow">'.PHP_EOL; //startrocedure $img_result = ''; if(empty($arrImageFile[$key])){ $img_result = ' '; }else{ $img_result .= '<ul class="qandaul"><li>'; if(is_array( $arrImageFile[$key] )){ foreach($arrImageFile[$key] as $filename){ $img_result.= CreateLink($filename, "image"); } }else{ $img_result.= CreateLink($arrImageFile[$key], "image"); } $img_result.= '</li></ul>'; } //endrocedure echo '<td width="11%" class="imagetd">'.$img_result.'</td>' . PHP_EOL; echo '</tr>'.PHP_EOL;}?> </tbody> </table> </div>\[/code\]Screenshot showing what it looks like at moment: