Hello,
I have a database filled with keywords and the program let you search for it. For example of my data:
[keywords]
quest,alien,campy,3d
What I want to do is let you search through the keywords. So I have the following:
$q=param('q');
if ($keywords =~/$q/i) { print "match"; }
It does work if I searh for 'quest', but If I type something like: some quest like, it should find the search since 'quest' is one of the keywords. For some reason, it doesn't search for it and gives an error. Anyone know what is wrong with it?. Thank You so much for reading.
I have a database filled with keywords and the program let you search for it. For example of my data:
[keywords]
quest,alien,campy,3d
What I want to do is let you search through the keywords. So I have the following:
$q=param('q');
if ($keywords =~/$q/i) { print "match"; }
It does work if I searh for 'quest', but If I type something like: some quest like, it should find the search since 'quest' is one of the keywords. For some reason, it doesn't search for it and gives an error. Anyone know what is wrong with it?. Thank You so much for reading.