From: Todd Benson Date: 2008-09-23T08:18:53+09:00 Subject: Re: Database Query On Mon, Sep 22, 2008 at 6:51 AM, Erik Johansen wrote: > Hello. > > Im trying to fetch a value from a field in our database, using this > code. > > selected = @site.db.select("select car from car_sale where id=402 AND > email='a1@a.com'") > > But this throws the errormessage. > RemoteDatabase::Error: invalid environment > > Does anybody knows how to get a value properly from the db? You specify here your table and fields, but no mention of the database. How are you connecting to the database? Todd