I want to write a simple script that searches a page for something like this:
and turns it into this:
Do I need to get php to search the database for the emoticon text, convert it, then print it, or can I just search a regular (not generated from a database) page within itself?
I'm sure this is really simple (then again, maybe not), but I'm not really sure where to start as my only PHP experience is with accessing MySQL databases. I don't want anyone to write out my code for me, but a starting point would be nice.
and turns it into this:
Do I need to get php to search the database for the emoticon text, convert it, then print it, or can I just search a regular (not generated from a database) page within itself?
I'm sure this is really simple (then again, maybe not), but I'm not really sure where to start as my only PHP experience is with accessing MySQL databases. I don't want anyone to write out my code for me, but a starting point would be nice.