next Posted July 5, 2008 Share Posted July 5, 2008 I'm trying to figure out how to display only first 100 characters followed by "... read full article", but can't seem to get it. Please help. Thanks. Link to comment https://forums.phpfreaks.com/topic/113364-solved-display-only-first-100-characters-from-a-cell/ Share on other sites More sharing options...
Barand Posted July 5, 2008 Share Posted July 5, 2008 This will get you the article id and 100 chars of the article SELECT articleID, SUBSTRING(article,1,100) as article FROM articleTbl and you need to add a link like echo "<a href='fulltext.php?id=$articleID'>... read full article</a>"; Link to comment https://forums.phpfreaks.com/topic/113364-solved-display-only-first-100-characters-from-a-cell/#findComment-582555 Share on other sites More sharing options...
next Posted July 6, 2008 Author Share Posted July 6, 2008 great, thanks! Link to comment https://forums.phpfreaks.com/topic/113364-solved-display-only-first-100-characters-from-a-cell/#findComment-582619 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.