What exactly are you trying to do? I'm not that familiar with Dlookup() but if you describe what you are using it for, then I can probably tell you how to do the same thing in php.
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
These out-of-the-box solutions provide you proven, tested applications that can be up and running now. Build a store, a gallery, or a web-based email solution.