I have a transaction procedure like this:
INSERT INTO transaction(out, taxi_no, driver_name, odometer, date, mileage_out, hours_rent, remittance, total, shortage) VALUES (@out, @taxiNO, @drivername, @odometer, @date, @mout, @hours, @remittance, @total, @shortage)
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'out, taxi_no, driver_name, odometer, date, mileage_out, hours_rent, remittance, ' at line 1
I just copied the syntax and just change the values from my other project, it works well on my other project but when i tried to run the application, it gives me the error.
odometerfield that is not present in the queryoutpart before thetaxi_no? Where isodometer? I feel like this is either the wrong error message that you've given us, or it's not this query throwing it.outin your table? then try changing that line to thisINSERT INTO transaction(`out`, taxi_no, driver_name, odometer, date, mileage_out, hours_rent, remittance, total, shortage) VALUES (@out, @taxiNO, @drivername, @odometer, @date, @mout, @hours, @remittance, @total, @shortage)