troubleshooting Question

Diminish character length in php

Avatar of www-i-p-mu
www-i-p-mu asked on
PHP
2 Comments1 Solution343 ViewsLast Modified:
Hi expert;

Am trying to diminish text retrieve from my database for my site search engine. When someone make a query to the database if his query was found into the database the result will be display a text corresponding to the description of the search. My problem is that it return all text from my database and I dont want the seach to return all the text but only a small define paragraph. Is there a function which will permit me to split the length of the text? i.e. if the text result is more than 15 words the text will automotically split into two and the second part will only be displayed if the user click on the search result link.

Please advise.
ASKER CERTIFIED SOLUTION
dantuma

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 2 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 2 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros