Inserting new value in the database (SQL - EasyDB)
#1

Hello!

It's been a while since I last requested some help on the forums, but I got to. I'm trying to learn working on dynamic systems and am currently working on a vehicle system. It's working pretty fine until now, but when I try to buy a new car, it's overwriting the old value.

http://pastebin.com/zsm68m3w

This is the code I use to create a new vehicle for the player, however it doesen't create new user, but edits the only one instead. I'm using EasyDB to manage the SQL system. The thing is, new row is being created BUT old value is being edited. So, new row with player name will be created, but the values that have to be edited (model and position) will be edited in the old row (first row that gets selected and that has the player name as "owner")



Any response is appreciated.
Reply


Messages In This Thread
Inserting new value in the database (SQL - EasyDB) - by Private200 - 02.04.2016, 18:51
Re: Inserting new value in the database (SQL - EasyDB) - by Private200 - 02.04.2016, 21:41

Forum Jump:


Users browsing this thread: 1 Guest(s)