please don't reply on this forum, but send and email
I'm building a searchfunction in my webring. I work with .txt files and in those .txt files the words or names to search for are showed as word1;word2;word3;word4;
Well, how to read that and how to seperate those words is no problem... But now I want to tell my script that when the search matches a piece of the word, the word that the search matches is returned.
But I don't know how to use the wildcards or what wildcard I should use... In this example I use an asterisk (*):
if($game == "$search")
{
print "$game, ";
}
$game is one of those words.
What should I use or do???
Please send an email to abandon5000@free.fr
if you know the answer...
By the way, I don't use MySQL for this, only .txt and PHP. It's not that I can't work with MySQL, I'm fine using MySQL, I just don't want to... I want to use .txt