02.11.2016, 13:44
(02.11.2016, 13:40)g2g2g2 Wrote: Hey, how can i write from my LM to mysql?
docs - error 404!
sorry for my bad english...
require('luasql.mysql')
env = luasql.mysql()
dbcon = env:connect('db', 'user', 'password', 'host', 'port')
if dbcon then
cursor = dbcon:execute( 'your sql statement' )
dbcon:close()
env:close()
end