add 3ctr 3e after 4 3ctd 3e using php

Solutions on MaxInterview for add 3ctr 3e after 4 3ctd 3e using php by the best coders in the world

showing results for - "add 3ctr 3e after 4 3ctd 3e using php"
Silvia
14 May 2018
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>";