Jump to content

[HELP] Mysql insert into error


Recommended Posts

Posted

Hello, I am trying to make a report system that saved the reports in mysql, but I keep getting syntax error. I don't really know what the syntax for dbQuery is...

local qh = dbQuery(mysql, "INSERT INTO reports (Date, Type, From, Content) values ('"..getFormatDate().."', '"..typ.."', '"..getPlayerName(client).."', '"..text.."');") 
    local result = dbPoll(qh, -1 ) 

76561198066470453.png

SP37Ecj.jpg?2MTA:Rust Pre-Alpha Build v.0.3:SP37Ecj.jpg?2

https://forum.mtasa.com/viewtopic.php?f=114&t=97848

2Pac: ''Only God can judge me!''

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...