Hi
I am writing a guestbook, and want to replace ":-)" etc with images.
In the file that reads the data, I have used
$GetLine[2] = eregi_replace(':-)', '<img src="smile.gif" align="absmiddle">', $GetLine[2]);
and it works fine.... however, there's a lot more emoticons than just the smile, so when I add multiple statements similar to the one above, but with different emoticons, it doesnt work, and nothing is displayed!
How can I get the php to identify (and replace) several possible combinations at once?
Any thoughts?
cheers.