Hey, i have jus added emoticons the my guestbook.
As an example: when the user clicks the smile emoticon then "[smile]" is added to their entry. This is then written to the database along with the rest of their message and then extracted again so it can be viewed. When the message is extracted, i've used the str_replace function to replace [smile] with the <img> tag and the picture appears successfully.
Now the trouble i am having is this works fine for one emoticon but when i try to do it for two or more at the same time i get an error.
This is what i am using to replace the string with the image:
$messageemoticon = str_replace("[smile]", '<img src="Emoticons/Smile.gif">', $message)
How would i do another str_replace whilst still saving it in the variable $messageemoticon.
Thanks for your time, BIOSTALL