2011-02-24, 08:04 PM
Hello,
At first, I'm new here at this community and I'm not shure my topic is placed at the right section, I hope so
But I'm currently creating my own game. I'm now at the point that I would like to combine my forum with my game. So that when the game starts, the game ask the user for his username and password. With the data the user provided, I want to check the forum-databases if the user is registered and if he is, I want to return the UserID to the game to use the stored playerdata in the myBB and my onw databases.
My PHP and mySQL knowledge is quitte limited, and I have no idea how to use the protected passwords.
How I want to let it work:
I want to have a PHP file on my server. Using my game I sent information to this PHP page/script (using the "get" functions). At next, the PHP script should encrypt the password and check in the databases if the username and password are the same. If they are, the script should just return the UserID, if not, it should return -1, nothing more, because it is a script that is only entered by the game.
I hope that anyone can help me how to create such a PHP script.
Ronald
At first, I'm new here at this community and I'm not shure my topic is placed at the right section, I hope so
But I'm currently creating my own game. I'm now at the point that I would like to combine my forum with my game. So that when the game starts, the game ask the user for his username and password. With the data the user provided, I want to check the forum-databases if the user is registered and if he is, I want to return the UserID to the game to use the stored playerdata in the myBB and my onw databases.
My PHP and mySQL knowledge is quitte limited, and I have no idea how to use the protected passwords.
How I want to let it work:
I want to have a PHP file on my server. Using my game I sent information to this PHP page/script (using the "get" functions). At next, the PHP script should encrypt the password and check in the databases if the username and password are the same. If they are, the script should just return the UserID, if not, it should return -1, nothing more, because it is a script that is only entered by the game.
I hope that anyone can help me how to create such a PHP script.
Ronald