I need your help with doing a Read More feature for my website. Contents that the Read More feature will be applied on are generated dynamically. When I implement it, and I click the Read More...i'm taken to the same page and the full article dosent show.
Please how can I fix this.
Thank you.
<?php
$row['article_content'];
if (strlen($row['article_content']) > 500) {
$shortText = substr($row['article_content'], 0, 100);
$shortText .= '... <a href="site/article.php?id=' . $id . '">Read More</a>
echo $shortText;
} ?>