It is possible to vary the writing of the results, as an example below where I want to use.
<table width="1000" align="center">
<tr>
<td> NOTICIAS</td>
<td> </td>
<tr>
<td width="350"> <?php
$sql = "SELECT * FROM noticias WHERE categoria='noticias' ORDER BY idnoticia DESC LIMIT 1";
$stmt = DB::prepare($sql);
$stmt->execute();
$exibe = $stmt->fetchAll();
foreach ($exibe as $u) {
echo "<div style='float:left;width:99%;margin-right:10px;'><a style='color:#000;text-decoration:none;' href='{$u->categoria}.php?idnoticia={$u->idnoticia}'>";
echo "<div class='thumbnail'> <img src='img/{$u->idnoticia}/{$u->imagem}' class='img-responsive'>";
echo "<div class='limit'>{$u->titulo}";
echo "</div></div></a></div>";
?></td>
<td width="650"><?php
$sql = "SELECT * FROM noticias WHERE categoria='noticias' ORDER BY idnoticia DESC LIMIT 6 OFFSET 1";
$stmt = DB::prepare($sql);
$stmt->execute();
$exibe = $stmt->fetchAll();
foreach ($exibe as $u) {
echo "<div style='float:left;width:99%;margin-right:10px;'><a style='color:#000;text-decoration:none;' href='{$u->categoria}.php?idnoticia={$u->idnoticia}'>";
echo "<div class='thumbnail'> <img src='img/{$u->idnoticia}/{$u->imagem}' class='img-responsive'>";
echo "<div class='limit'>{$u->titulo}";
echo "</div></div></a></div>";
?></td>
</table>
Can I take advantage of the same select
used in the first <td>
to continue the result after the 2nd <td>
? How to write the 1st result, "pause" and rewrite the remainder in another way?