How do you put whats in a variable into a column
in a ruby/mysql database?
I thought you could just put the variable name in
an INSERT statement?
but ‘@mytext’ puts in @mydata literally into the db.
and @mytext gives an error message.
I also tried mytext
res = dbh.query(“INSERT INTO word (u, up, temp) VALUES(‘check’, ‘check’,
tags: ruby/mysql, variables, ruby, databases