I'm learning the ninja arts of PHP and my code has been giving a little headache.
<div class="container">
<div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">
<section class="painel novidades">
<h2>Novidades</h2>
<ol>
<?php
$sql = mysql_query("SELECT * FROM produtos");
while($produtos = mysql_fetch_assoc($sql)){
echo "<li>;
<a href=\"produto.php?\" id=<?php echo $id ?>>;
<figure>;
<img class=\"foto\" src=\"img/produtos/miniatura2.png\">;
"<figcaption>.$exibe[nome].$exibe[valor].</figcaption>";
</figure>;
</a>;
</li>";
}
?>
The intention is to show the products coming directly from the database, obviously the same product, but what is wrong there? (The connection to the database has already been made above in the code.)