I am wondering how could be achieve , getting new line break ( <br /> ) after fetching each 3 records from database with a query returned more than 50 rows.

Yep , that’s working .

But any idea how to get rid of inserting break line at start? cause variable is 0 so break line is inserting also at start.

set i = 1, move echo above condition

Something like:

while($rows = mysql_fetch_assoc($sql)) {
    if($i &#37; 3 ==0 ) {
        echo '<br />';
    echo $rows['whatever'];

Obviously substitute $rows and $sql for your query and results handler

That’s helped. Thanks.