I have a database that contains several topics, each of which has a title and some description. On the cover page, I should display all the headings and several description lines for this topic. When a user clicks on one topic, he gets to a page where he can find a full description. Just like the stackoverflow site, where a brief description of the description of each question is displayed.
I was wondering if there is a way by which we can get such a brief description from the database directly or should the interface parse the extracted record and truncate it accordingly? Is there a way to directly request a short version of a record from a database. I use MySql as my database and php to display web pages.
source
share