• Resolved PsychoPunk

    (@psychopunk)


    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”/>&#8217;;
    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.

    https://wordpress.org/plugins/insert-php/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘Loop for ?’ is closed to new replies.