i've written a search script with a mysql database and perl and it works sweet, it highlights the word i search for in capitals and makes it bold.
The problem i have is if the search word is half of a word it wont make it bold, like if i search for the word 'man', it will return strings with man in them like 'manager', 'mandrake' etc..., what i want to do is make the 'man' part of those found words bolded and leave the rest of the word normal like this 'MANager', 'MANdrake' etc.., can anyone tell me the code to enable me to do this? at the moment, it dont do it, but if it finds the work 'man' by itseslf, it will turn it bold no worries, its only when its part of another work it wont make it bold.
later...
The problem i have is if the search word is half of a word it wont make it bold, like if i search for the word 'man', it will return strings with man in them like 'manager', 'mandrake' etc..., what i want to do is make the 'man' part of those found words bolded and leave the rest of the word normal like this 'MANager', 'MANdrake' etc.., can anyone tell me the code to enable me to do this? at the moment, it dont do it, but if it finds the work 'man' by itseslf, it will turn it bold no worries, its only when its part of another work it wont make it bold.
later...