On 12/29/05, Silvia Brandimarte <[EMAIL PROTECTED]> wrote: > Hi List, > > I need to display data in fields and text-lists picked from a mysql > database. > > I realized little functions to do this (they work properly), anyway, when= I > use them in the layout I can't see nothing displayed. Why? > > These are my functions: > > modello: func [ targa ] [ > > dbport: open mysql://root:[EMAIL PROTECTED]/autodispa > > insert dbport [ "select marcamodello from auto where targa = =3D ?" > targa ] > > mod: copy dbport > > close dbport > > return mod > > ] > > > > interventi: func [ targa ] [ > > dbport: open mysql://root:[EMAIL PROTECTED]/autodispa > > insert dbport [ "select * from intervento where targaauto =3D= ?" > targa ] > > interv: copy dbport > > close dbport > > return interv > > ] > > > > and if I write: > > field modello[targa/text] > > or even this > > text-list interventi[targa/text] > > nothing is displayed > > Please help me, I can't understand what's wrong with my code. Thank you, >
can you try field probe modello[targa/text] to test what "mondello [targa/text]" returns? And probe a bit in 'modello for [targa/text] ? A thought: this code is executed when the layout is created. Maybe targa/text is then empty? When the user enters a value there is no refresh? text-list: its text-list data ["1" "2" "3"] > Silvia > > > > -- > To unsubscribe from the list, just send an email to > lists at rebol.com with unsubscribe as the subject. > > -- -Volker "Any problem in computer science can be solved with another layer of indirection. But that usually will create another problem." David Wheeler -- To unsubscribe from the list, just send an email to lists at rebol.com with unsubscribe as the subject.
