Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error Message upon login #10

Open
Jamesbond165 opened this issue Jul 11, 2020 · 16 comments
Open

Error Message upon login #10

Jamesbond165 opened this issue Jul 11, 2020 · 16 comments

Comments

@Jamesbond165
Copy link

This is the error message i receive when trying to login is this suppose to happen? please help

Fatal error: Uncaught Error: Call to undefined function mysql_connect() in C:\xampp\htdocs\banking_inc\dbconn.php:6 Stack trace: #0 C:\xampp\htdocs\banking\index.php(15): include() #1 {main} thrown in C:\xampp\htdocs\banking_inc\dbconn.php on line 6

@horllste
Copy link

have you figured it out?

@Jamesbond165
Copy link
Author

Jamesbond165 commented Jul 11, 2020 via email

@horllste
Copy link

are you working locally or online?

@Jamesbond165
Copy link
Author

Jamesbond165 commented Jul 11, 2020 via email

@horllste
Copy link

its either your php version is higher than the required for this project or tou did something wrong in dbconn.php

@Jamesbond165
Copy link
Author

Jamesbond165 commented Jul 11, 2020 via email

@Jamesbond165
Copy link
Author

Jamesbond165 commented Jul 11, 2020 via email

@g33kyrash
Copy link
Owner

Guys, i am so sorry for not responding since a very long time. It was a very small college project i wrote in just four days many years back. The code quality is not at par since i was a college student back then and i would suggest to check out some other php projects on the internet for educative purpose if you are having any difficulty in setting this up. I don’t think i can debug it right now, as I myself don’t remember the configs for this. This project is not maintained anymore.

@horllste
Copy link

I just installed xampp and didn't install any php on my pc. Could it be I am using a higher version? As the php that comes along with my xampp is higher? What should I do?

On Sat, Jul 11, 2020, 10:32 PM Molly Kidd @.> wrote: Hmmm what do you think I should in this situation? On Sat, Jul 11, 2020, 10:31 PM horllste @.> wrote: > its either your php version is higher than the required for this project > or tou did something wrong in dbconn.php > > — > You are receiving this because you authored the thread. > Reply to this email directly, view it on GitHub > <#10 (comment)>, > or unsubscribe > https://github.com/notifications/unsubscribe-auth/AQCCWDELCSJXSGTIKV764JTR3DK4DANCNFSM4OXOIWQA > . >

use php not higher than version 6

@g33kyrash
Copy link
Owner

But i guess it was fairly straight for me to set it up on another machines. I am not aware of the compatibility issues which might have crept in now. Apologies for the inconvenience caused!

@Jamesbond165
Copy link
Author

Jamesbond165 commented Jul 11, 2020 via email

@g33kyrash
Copy link
Owner

I am not sure what do you mean by managing the users. Once you have set this project, there is a functionality where you can add/remove users and change their password or just login to the database and use raw mysql query to change the password. The hashing algo is defined in the registration page.

@Jamesbond165
Copy link
Author

Jamesbond165 commented Jul 11, 2020 via email

@g33kyrash
Copy link
Owner

Please run a mysql query into the db and fetch the username from customer table. The password would be ‘rash’ for most of the usernames. If you want to hard reset the password, please update the password column in the db after hashing the password. I guess i used sha-1 to hash the passwords before storing it in db.

@hifeyasia
Copy link

change all the mysql to mysqli
do the changes both in index.php and dbconn.php

@karanja-Claire
Copy link

change all the mysql to mysqli
do the changes both in index.php and dbconn.php

I did the changes but i still cant connect to the admin page

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants