insert to database
Posted: Sun Jul 15, 2007 5:25 pm
i have 2 fields , name, vorname in the stack, this script in the button for sqlite 3, connection is correct,
tested on mac with sqlite databrowser.
??
Ralle
add some letters to fields and press the button, there is only a new schuelerID, in the fields of table schueler, name, vorname, nothing.on mouseUp
global gConID
put field "name" into tname
put field "vorname" into tvorname
answer tname, tvorname
revExecuteSQL gConID,"insert into Schueler(name, vorname) VALUES(:1,:2)",tname, tvorname
handleRevDBerror tResult
if the result is not empty then
answer warning the result
exit mouseUp
end if
answer information "Number of rows added: " & return & tResult
end mouseUp
tested on mac with sqlite databrowser.
??
Ralle