Jump to content

PHP/MySQL select partial text


sibrows

Recommended Posts

Hello, this may be a really simple question but I can't seam to locate the answer using the all powerful Google!

 

I'm trying to build a news reader on my site and instead of showing the whole news article I just want it to show the first 'x' words. My current, very cumbersome solution is to have two fields within a the database both manually filled when the article is created.

 

I can't help thinking there is a better way of doing this.  ;)

 

Thanks in advance.

 

Simon

Link to comment
https://forums.phpfreaks.com/topic/97340-phpmysql-select-partial-text/
Share on other sites

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.