Jump to content

MySQL - unkown column?


Rat32

Recommended Posts

function nadajemypojazd(plr, cmd) 
pojazd = getPedOccupiedVehicle(plr) 
vehid = getVehicleID(pojazd) 
a,b,c = getElementPosition(pojazd) 
exports.DB2:zapytanie("INSERT INTO bl_test SET marka=vehid,x=a, y=b, z=c") 
end 
addCommandHandler("taktak", nadajemypojazd) 

DS 3:

dbPoll failed; Unkown Column 'vehid' in 'field list'

Columns are created, mysql database working. What's the problem?

Link to comment
  
function nadajemypojazd(plr, cmd) 
pojazd = getPedOccupiedVehicle(plr) 
vehid = getVehicleID(pojazd) 
a,b,c = getElementPosition(pojazd) 
exports.DB2:zapytanie("INSERT INTO bl_test SET marka=?,x=?, y=?, z=?", vehid, a, b, c ) 
end 
addCommandHandler("taktak", nadajemypojazd) 
  

Link to comment

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...