954,587 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Seacrch text using php

Hai friends

I have got the contents from database But i need to search the content if any worsd available in the contents

For example when I get the pargraph from the table then i find "Style" this word is avaliable in the paragraph .

How can i find the text in the paragraph?

Thanks
Prabu
__________________
Thanks
Vssp

vssp
Junior Poster
199 posts since Jul 2006
Reputation Points: 5
Solved Threads: 5
 

Have a look at some of these string functions. One of them is bound to do what you want it to.

http://www.w3schools.com/php/php_ref_string.asp

iamthwee
Posting Expert
5,950 posts since Aug 2005
Reputation Points: 1,543
Solved Threads: 439
 

What database software are you using? Some have full text search capabilities which are quite neat. You could search for "styles" or "styling", and it would match "Style", because they're related. Some even do "good", "better", "best" relations. Depends on your db software... There might also be a php module for some of this stuff... Not sure, but it seems possible.

Hai friends

I have got the contents from database But i need to search the content if any worsd available in the contents

For example when I get the pargraph from the table then i find "Style" this word is avaliable in the paragraph .

How can i find the text in the paragraph?

Thanks Prabu __________________ Thanks Vssp

MCP
Light Poster
44 posts since Oct 2006
Reputation Points: 14
Solved Threads: 3
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You