Posts: 439
Threads: 62
Joined: Apr 2012
Okay, I've got vID save in the player table and a vID in the vehicles table on MySQL..
How would I 'link' these both for a player to know it's his car?
Posts: 439
Threads: 62
Joined: Apr 2012
Posts: 439
Threads: 62
Joined: Apr 2012
Lolwut?
I honestly don't get what you just said.
EDIT: I get this error.
No database selected
And I've got this.
Код:
SELECT *
FROM players JOIN vehicles
ON players.vehicleID = vehicles.vID
Posts: 439
Threads: 62
Joined: Apr 2012
Is this it?
Posts: 439
Threads: 62
Joined: Apr 2012
Yes, I read this one:
http://dev.mysql.com/doc/refman/5.1/...nstraints.html
But, is that what it is in the picture above?
Posts: 439
Threads: 62
Joined: Apr 2012
I didn't use the GUI. I went into Player > Structure > Relation View > Here.
Posts: 977
Threads: 10
Joined: Apr 2011
Reputation:
0
That would be you using the GUI.
Regardless, find the section of the program you are using to navigate through your database that you can execute code from. Make changes to the table using the code from that documentation, as appropriate.
Posts: 439
Threads: 62
Joined: Apr 2012
I've tried doing it the other way and it doesn't work.