iamrohitsuthar / Quizller

Quizller is a php based open source web application to create and manage online quiz, test, exam.
MIT License
110 stars 76 forks source link

Help me to login #17

Closed professor339 closed 3 years ago

professor339 commented 3 years ago

You have created a great online quiz system with pro feature. Thanks for uploading such valuable code. I am a new php learner so , i am not able to login to admin page after entering username:- admin and password:- nimda / sha256. I also tried tried many password by decrypting the password code.

I am running the file in localhost ( root, blank password, databasename:- sampleData )

What changes i need to do here:-

<?php //database configurations define("DB_HOST","localhost"); define("DB_UNAME","YOUR_DATABASE_USER_NAME"); define("DB_PASS","YOUR_DATABASE_PASSWORD"); define("DB_DNAME","YOUR_DATABASE_NAME"); $conn=mysqli_connect(DB_HOST,DB_UNAME,DB_PASS,DB_DNAME); ?>

iamrohitsuthar commented 3 years ago

Have you imported the sample data file on the database?

professor339 commented 3 years ago

Yes, sir i have imported the data in my localhost phpmyadmin.. and set the database name as sampleData.sql as mentioned in the database folder...the import was success...

iamrohitsuthar commented 3 years ago

Okay, so have you changed the DB config file according to your configuration?

professor339 commented 3 years ago

<?php //database configurations define("DB_HOST","localhost"); define("DB_UNAME","YOUR_DATABASE_USER_NAME"); define("DB_PASS","YOUR_DATABASE_PASSWORD"); define("DB_DNAME","YOUR_DATABASE_NAME"); $conn=mysqli_connect(DB_HOST,DB_UNAME,DB_PASS,DB_DNAME); ?>

My database imported name is :- sampleData.sql Host is :- localhost username:- root password:- ( blank )

What changes i need to do here i am not able to know... While changing YOU_DATABASE_USER_NAME to root. It is not working... Help me to find my mistake sir..

iamrohitsuthar commented 3 years ago

Go to the database/config.php file and add an echo statement by checking the connection object in the if construct and execute the config file directly and check whether there is any problem in the connection establishment or not.