I have a query, it is outputting the results into one column, I would like to have the results shown in two columns. Here is the code:
$i = 0;
$columnCount = 2;
echo "<table>";
while($row = $result->fetch_assoc())
{
$newRow = ( $i % $columnCount == 0 );
if( $newRow ) {
echo '<tr>';
}
echo '<td>' . $row['text'] . '</td>';
if( $newRow ) {
echo '</tr>';
}
$i++;
}
echo "</table>";
Thanks Again,