Unless mambo is odd, your variables are wrong. You can't have a number as the first thing in a variable.
And I also don't see why this wouldn't work. All you would have to do is hard-code your user/pass/host/etc for the database info, and everything would work.