In PHP, I want to output table rows in a specific format, for every two mysql records like this.
So data being outputted would be 1,2,3,4,5,6 from the database but with a new row for each two numbers. What is the best way to do this?
<table>
<tr>
<td>1</td>
<td>2</td>
</tr>
<tr>
<td>3</td>
<td>4</td>
</tr>
<tr>
<td>5</td>
<td>6</td>
</tr>
</table>
1 Answer