Now you can let it take in an array of smiley shortcuts and images. Just set up a loop that extracts the smilies and image URLs from a table in mySQL.