I'm sure this can be done in an easy way. This is my problem. I have a program I have written to translate job titles from spanish to english and vice versa. There are a couple of hundred of these. I need an easy way to be able to recognize the words with their different endings. eg.
'cocinero', 'cocinera', 'cocineros', 'cocineras' and all come up with cook as the translation. The example below only recognizes 'cocinero' and ignores 'cocinera'.
Investigating around maybe I can use 'strpos' to avoid writing out all my entries 4 times. But not sure how to go about this in the most concise way.
Code: Select all
if ($rowtr['businesscategoryesp'] == "cocinero") { $updateSQL = "UPDATE businessdetails SET businesscategory = 'cook' WHERE userid = '$u' AND recoentryid = '$re';"Thanks