Yep, I'd have to suggest the book as well.
It doesn't actually say "this is how to make a game in DB" but it explains everything about programming (loops, if/endif, functions, arrays, lights, variables etc etc etc) and how to use them. It's split up into chapters to sort out the different aspects and has loads of very well explained examples.
It won't teach you everythng but it's a good start if you're new to prgramming/DB.
Hope I helped.
Formely play2kill
When the power of love overcomes the love of the power... the world will know peace. - Jimi Hendrix