This is my code:
$sm2 = array( "angry", "cool", "cry", "happy", "heart", "kiss", "mute", "sad", "smile");
for($j=0;$j<count($sm2); $j++) {
$data=$data . "<img id='". $sm2[$j] ."' src='images/emotions/" . $sm2[$j] . ".png' data-toggle='tooltip' title=". $sm2[$j] ." width='32' height='32' style='margin:5px;'
onclick='insertEmoticons(this.id);'/>";
}
How can I insert a <br>
tag after 5 results because i don't want everything to be on one row.