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. Quote Link to comment 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>"; Quote Link to comment Share on other sites More sharing options...
next Posted July 6, 2008 Author Share Posted July 6, 2008 great, thanks! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.