Loop for ?
-
Hi everybody,
i have one problem, Insert php works but look :[insert_php]
include ‘connect.php’;
echo “<p>wtf</p>”;
for ($i = 1; $i <= 10; $i++) {
echo $i;
}
for($x = 0; $x < 5; $x++)
{
echo ‘<p>’.$x.'</p>’;
}$query = ‘SELECT * FROM evenements ORDER BY date_debut DESC LIMIT 4’;
$result = $db->query($query);for($i = 0; $i < 4; $i++)
{
echo ‘<div class=”produit”>’;
echo ‘<img src=”http://www.gaea21.org/repertoire-vert/wp-content/uploads/2015/11/haricots.jpg”/>’;
echo ‘<h5>TOMATES DE GENEVE</h5>’;
echo ‘<p>Description:
Si resistendum nec cum sed nisi hac aetatis hanc acerbo intolerabili ad ad intolerabili causa. </p>’;
echo ‘<hr>’;
echo ‘Plus d”infos‘;
echo ‘</div>’;
}
[/insert_php]The last loop FOR disable the all code i dont know why …
Ty.
The topic ‘Loop for ?’ is closed to new replies.