Hi everyone,
I wanted to know if there was a way to do string or text comparison. I'm not talking about number of letters to number of letters, but letter for letter comparison, or my case, word for word and number for number.
Heres my situation:
I'm designing a moderation panel for a private game server we wish to set up and this program will be used to easily send SQL queries and receive SQL query result data from the database. Now, I've successfully been able to retrieve the information and data I need from the database, but I'm looking to make a log in process that goes based off the data from the server database, which coincidently happens to be a lot of text.
I want the log in process to verify three things:
Account ID (text)
Password (MD5 Hash/text & numbers)
Authority (text/1 letter)
Goal:
The moment I press the "Login" button, the program sends three SQL queries to the database and retrieves the data right after and places each query result into an edit box or string object (I've tried both to no avail). Once thats done, it starts to verify the account name, password (in MD5) and authority status based on the input given by the user for account and password. Authority would be checked by the program. I'm going to set it up so that if one authority status check fails, it will fall back to another and run down the list until the last one is checked and gives an error and stops the user from continuing.
Problem:
My current method of comparing the data results from the server to the data input from the user and the programs automatic authority check is to compare two general values. I figured this wouldn't work because it's looking for numbers, so it seems anyway. I can't compare two general strings because there is no such option, to the best of my knowledge anyway. I'm stuck.
In short:
Is there any way to compare two text strings or a mix of numbers and letters to see if they match perfectly? If so, how? @_@
I hope someone can help me with this or point me in the right direction.
Thanks everyone!
Jesse~
