Quote:
Originally Posted by Bugsy
So you need to query for the SteamID and LastName and if no record exists, insert both fields as a new record?
|
Let me give an example here. How can I subtract Steam_ID and LastName? Let's say I gave Steam_ID 123, how can I get the equal LastName?
CREATE TABLE IF NOT EXISTS `players` (
`ID` int NOT NULL AUTO_INCREMENT,
`Steam_ID` varchar(32) NOT NULL,
`LastName` varchar(32) DEFAULT 'None',
PRIMARY KEY (`ID`)
) ENGINE=MyISAM AUTO_INCREMENT=421 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;