// Increase the number of columns displayed
$newline++;
if ($newline == "3")
{
// Start a new row and reset the $newline variable
echo ("</tr><tr>\n");
$newline = 0;
}
} while ($row_callhosting = mysql_fetch_assoc($callhosting));
// Add any additional columns if needed to fill the last row
for ($newline; $newline < 3; $newline++)
{
echo ("<td> </td>\n");
}