0

i have this and i want to show only 2 line of each article from sql then i would be able to show more button in my

$pdoStat= $tableCompetence -> prepare('SELECT * FROM article ORDER BY article.dateArticle DESC limit 5');

 <?php foreach ($Compe as $temo):?>
        <li class="slide">
            <div class="quoteContainer">
                <p class="quote-phrase"><span class="quote-marks">"</span> <?= $temo['titreArticle']?><br><span class="quote-marks"></span>
                    <?= $temo['textArticle']?>
                </p>
            </div>
            <div class="authorContainer">
                <p class="quote-author"> <?= $temo['dateArticle']?></p>
            </div>
        </li>
        <?php endforeach; ?>

0 Answers0