Hello, am working on a project that retrieves part of a text from a database and then tells the user to read more.
For example, if I have "Programming is good.And everyone practice to know" and I want to retrieve only "Programming is good." but because the text is very long, I want only say some of the text but with fullstops at the end so that users reading the text can have some understanding before clicking on the READMORE button.
eg. "SELECT text SUBSTRING(text,1,20) as text FROM dbname";
how do i write it so that it brings the next available fullstop ?
Please help me.