- Joined
- Apr 29, 2005
- Messages
- 6,400
- Reaction score
- 130
So I'm developing a custom website for the upcoming rz muserver and it's pretty much finished, except for entering a proper password in the memb__pwd field in the database upon registering.
I'm currently using this query:
Which works fine but doesn't enter a proper password in the database, because I'm not able to login in to the game with the accounts created with this query.
So obviously this part of the query is wrong:
If someone knows what's wrong with this part, could they please tell me.
Thanks.
I'm currently using this query:
PHP:
mssql_query("INSERT INTO MEMB_INFO (memb___id, memb__pwd, memb_name, sno__numb, mail_addr, Gender, memb__pwd2, bloc_code, ctl1_code) VALUES ('".$_POST['user']."',CONVERT(varbinary(16),'".md5($_POST['pass'])."'), 'test', '".$_POST['id_code']."', '".$_POST['email']."', '".$_POST['gender']."', '".$_POST['pass']."', 0, 0)")
Which works fine but doesn't enter a proper password in the database, because I'm not able to login in to the game with the accounts created with this query.
So obviously this part of the query is wrong:
PHP:
"CONVERT(varbinary(16),'".md5($_POST['pass'])."')"
If someone knows what's wrong with this part, could they please tell me.
Thanks.