$query = "
SELECT GRAEMLIN_MARKUP_CODE,GRAEMLIN_SMILEY_CODE,GRAEMLIN_IMAGE,GRAEMLIN_HEIGHT,GRAEMLIN_WIDTH
FROM {$config['TABLE_PREFIX']}GRAEMLINS
ORDER BY GRAEMLIN_ID DESC
";
Shouldn't this have
Code
WHERE GRAEMLIN_IS_ACTIVE='1'
in it? I'm thinking only active graemlins should be converted into image tags.