Jump to content

[SOLVED] display only first 100 characters from a cell


next

Recommended Posts

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>";

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.