I am trying to write a rudimentary search engine. I want to see if one string matches part of another. Here's what I'm trying to accomplish:
If ("pancake" is a part of "Best pancakes in the world") { do this } else { do the other }
timstring;11018821 wrote:I am trying to write a rudimentary search engine.
I am trying to write a rudimentary search engine.
And where is the data that you'll be searching? This sounds more like a job for a SQL database than PHP.
It's searching inside a MySQL database
So why not let MySQL handle the searching? For example: Full-Text Search Functions or LIKE.
Because I'm just now wading into the ocean of SQL. The 'like' statement did the trick