0
As using php in a foreach loop to generate the table with two variables in each row?
The generation of a table in php.
2 ответов
0
I understand that it is necessary to use a counter loop. But how to set the condition for the insertion of the tags <th> and <tr>?
0
<table>
$num = 0;
forearch...
{
if (($num %2) ==0)
{<tr>}
if (?)
{<th>}
...
$num++;
}
</table>
Something like this, but I can't.