1$return_var = "<table style=\"width:100%;\">";
2$index = 1;
3while($value = mysqli_fetch_array($result))
4{
5 if($index == 1){
6 $return_var .= "<tr>";
7 }
8 $return_var .= "<td style=\"width:90px\"><strong>Plan_name : ".$value["plan_name"]."</strong></td>";
9 if($index % 4 === 0){
10 $return_var .= "</tr><tr>";
11 }
12 $index++;
13}
14
15$return_var .= "</tr></table>";