masterdon Posted July 31, 2010 Share Posted July 31, 2010 i need help with mysql.php this keeps coming up when i try to log into my game Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'root'@'localhost' (using password: YES) in /home/tassie12/domains/kronicalwars.co.cc/public_html/mysql.php on line 2 Warning: mysql_select_db() expects parameter 2 to be resource, boolean given in /home/tassie12/domains/kronicalwars.co.cc/public_html/mysql.php on line 3 Warning: mysql_query() expects parameter 2 to be resource, boolean given in /home/tassie12/domains/kronicalwars.co.cc/public_html/authenticate.php on line 30 Access denied for user 'root'@'localhost' (using password: YES) can someone send me the code for mysql.php for mccodes and tell me where to put the database user and pass? Quote Link to comment https://forums.phpfreaks.com/topic/209470-help-needed/ Share on other sites More sharing options...
Pikachu2000 Posted July 31, 2010 Share Posted July 31, 2010 Remove any passwords, etc. from the script you're using and post it here within . . . tags, and someone can probably help you out with it. Quote Link to comment https://forums.phpfreaks.com/topic/209470-help-needed/#findComment-1093709 Share on other sites More sharing options...
masterdon Posted July 31, 2010 Author Share Posted July 31, 2010 ive sorted that out. now im getting this message Table 'tassie12_db.users' doesn't exist i know where to create tables, but how many fields do i add, ect? Quote Link to comment https://forums.phpfreaks.com/topic/209470-help-needed/#findComment-1093715 Share on other sites More sharing options...
Pikachu2000 Posted July 31, 2010 Share Posted July 31, 2010 There really isn't a single answer to that question, it all depends on what you're trying to so. At the very least, you'll probably need a user_id, username, and password fields. You need to decide what information you'll require from the user, and design the table accordingly. Quote Link to comment https://forums.phpfreaks.com/topic/209470-help-needed/#findComment-1093718 Share on other sites More sharing options...
jcbones Posted August 1, 2010 Share Posted August 1, 2010 This may help MySQL Tables Tutorial Quote Link to comment https://forums.phpfreaks.com/topic/209470-help-needed/#findComment-1093774 Share on other sites More sharing options...
masterdon Posted August 2, 2010 Author Share Posted August 2, 2010 if i delete the files and re-install them to my hosting account would someone be able to set it up for me? Quote Link to comment https://forums.phpfreaks.com/topic/209470-help-needed/#findComment-1093990 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.