OK, so i was playing with it and got it to work...somewhat. seem to be getting a lot more output then it should and i dont know if i made a error somewhere and if so i dont know what i did heh.
sql code
SELECT quest.queststarter,
CASE quest.starttype WHEN 'mob' THEN mob.name
WHEN 'item' THEN items.name END AS queststarter
FROM quest, mob, items
WHERE quest.id = 1
with this a lot of results and basically about 5 duplicates for each row in the mob or item table.
so i tried this
SELECT quest.queststarter,
CASE quest.starttype WHEN 'mob' THEN mob.name
WHEN 'item' THEN items.name END AS queststarter
FROM quest, mob, items
WHERE quest.id = 1 AND
CASE quest.starttype WHEN 'mob' THEN
mob.id = quest.queststarter
WHEN 'item' THEN
items.id = quest.queststarter END
This gives me the correct mob/item name however it returns it 5 times.
am i doing something screwy in the statement that would return it 5 times?