ShibSta Posted September 12, 2006 Share Posted September 12, 2006 Hey, I am new to php but I am wanting to copy each registration that goes through vBulletin (v3.6.0) into another database on the same server.Also, I'm trying to make it a simple MD5 encryption since I'm completly confused by SALT.I managed to get the username to copy over but the password is empty.Can anyone assist me please? Quote Link to comment Share on other sites More sharing options...
bob2006 Posted September 12, 2006 Share Posted September 12, 2006 Paste the code Quote Link to comment Share on other sites More sharing options...
ShibSta Posted September 12, 2006 Author Share Posted September 12, 2006 Would that not be illegal to post vB code?Also, I'm not sure exactly what part(s) you'd need to see. This would probably best be answered by someone who works with and/or owns vB.If it's not illegal I'll post my register.php file with what little mod I've done.In short... Basically I just added:[code]$password = $_POST['password'];$username = $_POST['username'];$myinsert = "INSERT INTO users VALUES('', '$username', '$password')";mysql_query($myinsert) or die(mysql_error());[/code]1) This code simply puts in into another table... (I need it in another DB on the same server.)2) When the code is executed the username is saved but the password does not get written to the DB.3) There are no errors displayed. Quote Link to comment Share on other sites More sharing options...
bob2006 Posted September 13, 2006 Share Posted September 13, 2006 $password = $_POST['password'];$username = $_POST['username'];$myinsert = ("INSERT INTO 'users' (username,password) VALUES('', '$username', '$password')")mysql_query($myinsert) or die(mysql_error()); Quote Link to comment Share on other sites More sharing options...
ShibSta Posted September 13, 2006 Author Share Posted September 13, 2006 [quote author=bob2006 link=topic=107741.msg433459#msg433459 date=1158158864]$password = $_POST['password'];$username = $_POST['username'];$myinsert = ("INSERT INTO 'users' (username,password) VALUES('', '$username', '$password')")mysql_query($myinsert) or die(mysql_error());[/quote]1) That code does not work, give me a MySQL Syntax Error2) In the error generated by vB it shows ('', 'test', '')... In other words its getting the username but not the password. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.