SoireeExtreme Posted November 19, 2006 Share Posted November 19, 2006 I've been working on a game. And of coures requires you to register. So after I created the files need edto register. It worked fine. But when I went and removed all the user information from the database It wouldn't work. And I had changed nothing about the files. I left all the tables the same in the database just left them holding no saved infromation. I even tried starting a fresh database and it still did not work.The question is basically why won't it work now? Even though it worked the first time when there wasn't any saved information in the database the first time? Couldn't anyone give me any answers please? If you need some other sort of information to help me out. I'd be more then happy to provide it. Thanks to anyone that helps me or tries to help me in advance. Quote Link to comment Share on other sites More sharing options...
marcus Posted November 19, 2006 Share Posted November 19, 2006 Can you show us some code? Quote Link to comment Share on other sites More sharing options...
SoireeExtreme Posted November 19, 2006 Author Share Posted November 19, 2006 $SQL = "INSERT into ac_users(playername, password, email, validated, validkey, ip, style, class) VALUES ('$player','$password', '$email','0','$thekey','$ip','$style','$class')"; mysql_query($SQL) or die("could not register");That there is giving me the problem every time. Turning up doing its job saying Could not register. But as I said before it worked the first time around. Now its not. Quote Link to comment Share on other sites More sharing options...
SharkBait Posted November 19, 2006 Share Posted November 19, 2006 in the die() section change it to look like:[code=php:0] or die("Could not register: ". mysql_error());[/code]That way it will tell you why the query wouldnt work. Quote Link to comment Share on other sites More sharing options...
SoireeExtreme Posted November 19, 2006 Author Share Posted November 19, 2006 That helped me out greatly thank you ver much. 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.