After you do your query you can write this:
" . $news['details'] . " | ";
}
else {
echo "" . $news['details'] . " | ";
}
$row++;
}
if($rows % 2 != 0){echo " | "; }
?>
With this code you create a table an initialize a variable with 1, just for checking the number of rows.
Al the end if you have 3 news, the script will complete the row and an empty cell.