Posts: 4,759
Threads: 33
Joined: Dec 2013
Reputation:
0
Execute a SELECT statement with LIMIT 1, get the row count, and if it's 0 then it doesn't exist, if it's 1 then it does.
Posts: 1,199
Threads: 238
Joined: Feb 2016
Reputation:
0
But listen. I want to edit name of organizations. type is /editname [ID][New Name].
That is the way how I check for ID right?? It is same?
Posts: 10,066
Threads: 38
Joined: Sep 2007
Reputation:
0
If you don't want to check if it exists beforehand then you can use affected_rows() afterwards to check if the update was completed or not.
Posts: 1,199
Threads: 238
Joined: Feb 2016
Reputation:
0
But I want to check does ID of that org exist so I can edit its name, spawn and so on.. How to do I. I toight I know but I don't xD