Is there a way to call only so many characters/words from the database.
Take for example a news database, the main news page has clickable headlines and below the start of the news item.
Is there a way to call only so many characters/words from the database.
Take for example a news database, the main news page has clickable headlines and below the start of the news item.
Do you mean to make an excerpt out of the full content? We could use php substr() function to trim the length of the full content.
or use the LEFT() function in MySql so that you don't have to shuffle that data out of the database at all.