https://www.icyphoenix.com/viewtopic.php?f=17&t=9370&p=59956#p59956 ----------------------------------- Informpro Sat 20 Dec, 2014 00:15 Re: How To Add Db Variable To A CONSTANT ----------------------------------- Yes. It's mostly correct. One note: your $ID = ... should be in the else (also, I tend not to use empty ifs... Just negate the condition). It should work. However, I'd recommend you to use sprintf() instead of just appending to it.