Hi folks,
I am a beginner at PhP (2 months) and I have a coding prob which i will try and explain..
I am devolping a site where users can submit game music, game screenies, and game reviews... The submissions are done on the relevant pages.. i.e Music, GFX and Reviews
My problem is this ;
When a user submits an item (any of the 3 above) he must specify a GAME NAME
If any other submitted item is of the same game name, it is assigned the same 'game_id'
Now this sounded easy untill i realised that my very simple checker let lots of problems slip through the net...
for example if someone submits an item using
Monty on the Run
as the game name
and then someone else submits an item using
Montey on the Run or Montys on the run
then it generates another game_id
basically what i need is a routine that checks if a phrase is close to another in general.
I tried a routine that checked on a letter by letter basis - returning a percentage of the letters which in the new WORD and the OLD WORDS but then problems arose with anagrams such as
'ANOTHER WORLD' and TENCHU WARLORD' both retro games, totally different tho.
If anyone has a concrete routine which will sort mi problem, i would be very grateful.
Thanks in advance 🙂