-1
Could someone explain to me why the loop isn’t working, it used to work and the agr to breaking the head without understanding anything, it seems not being interpreted I don’t know. The "hello world" above works, but when to interact with HTML PHP does not work.
<?='hello world'?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Portal Noticias</title>
</head>
<body>
<header>
<div id="titulo">
Portal Noticias
</div>
</header>
<div id="noticias">
<?for ($i=0; $i < 5; $i++) { ?>
<article class="artigo">
<h1>Titulo da noticia</h1>
<p>
Lorem ipsum dolor sit amet, bla bla bla, consecetur. Lorem ipsum bla bla.
</p>
</article>
<?}?>
</div>
</body>
</html>
Try to use
<?php
instead of<?
.– bfavaretto