add <tr> after 4 <td> using php
$return_var = "<table style=\"width:100%;\">";
$index = 1;
while($value = mysqli_fetch_array($result))
{
if($index == 1){
$return_var .= "<tr>";
}
$return_var .= "<td style=\"width:90px\"><strong>Plan_name : ".$value["plan_name"]."</strong></td>";
if($index % 4 === 0){
$return_var .= "</tr><tr>";
}
$index++;
}
$return_var .= "</tr></table>";
Also in PHP:
- current date & tie in php
- check if string contains char php
- creat quik laravel app
- Connecting that to Database using PHP.
- Auth::routes(['register'=>false]); + laravel
- find contact page url by domain list php
- does string contain character php
- brew php version
- contain in php
- Argument 2 passed to App\Exceptions\Handler::unauthenticated() must be an instance of App\Exceptions\AuthenticationException, instance of Illuminate\Auth\AuthenticationException given
- Warning: func_get_arg() expects exactly 1 parameter, 0 given in
- codeigniter 4 login example
- composer install larave
- error e all php
- error messaging php
- current date() in php
- cannot add foreign key constraint laravel
- check if substring in in string php
- PHP create a random string over 99 char long
- drupal 7 db_query example
- check installed php modules in linux
- datetime in php
- Extra header element 'From' cannot be other than string or array. in
- check index type in php