I'm really glad that you're enjoying the course. Also if you think the tutorials could be helpful to others, then please SHARE with your family and friends. It helps this channel to GROW and your loved ones can also learn Web Development for FREE. Thanks and Regards!
Thank you so much for following the tutorials. And I'm really glad that you enjoyed the course. Also if you think the tutorials could be helpful to others, then please SHARE with your family and friends. It helps this channel to GROW and your loved ones can also learn Web Development for FREE. Thank you so much for your love and support.
1:15 create login page 2:10 link css 2:45 design page 4:40 css - login, width, border 5:35 refresh css page source 6:40 css - margin 7:20 css - padding 7:40 align text to center 8:30 create form 12:20 align text in form 13:30 login functionality 14:00 php - isset(), check submit button is clicked 15:00 php - get data from login form 16:50 php - sql statement find user 18:00 php - execute the query 18:30 include constants file 20:00 php - check if user exists 21:25 php - $_SESSION[], test message for login 22:35 php - header(), redirect to admin dashboard 24:00 error message if invalid login in login page 25:10 success message login in dashboard page 26:00 align text for message 27:50 php - md5() 29:00 add logout button in partials/menu 29.30 create logout page 30:20 destroy session 31:20 include constants 33:00 access control, $_SESSION[‘user’] 34:15 unset() user 37:00 create partials/login-check page 37:50 check if user not logged in yet 40:30 include login-check in menu page 42:00 error message in login page if user not logged 42:55 align text for error message Finished, well done!
I'm really glad that it was helpful to you. Hope you completed all the tutorials. Also if you think the tutorials could be helpful to others, then please SHARE with your family and friends. It helps this channel to GROW and your loved ones can also learn Web Development for FREE. Thanks and Regards!
Thank you so much. I'm really glad that the tutorials were helpful to you. Also if you think the tutorials could be helpful to others, then please SHARE with your family and friends. It helps this channel to GROW and your loved ones can also learn Web Development for FREE. Thank you so much for your love and support.
It's all good now brother. Thank you so much for following the course. Hope it's helpful to you. Also if you think the tutorials could be helpful to others, then please SHARE with your family and friends. It helps this channel to GROW and your loved ones can also learn Web Development for FREE. Best Wishes!
I'm really glad to know that the tutorials are helpful to you. Best Wishes for further learning. Also if you think the tutorials could be helpful to others, then please SHARE with your family and friends. It helps this channel to GROW and your loved ones can also learn Web Development for FREE. Thanks and Regards!
Thank You So Much @Ibrahim khed. I'm really glad that you're enjoying the course. Also if you think they can be helpful to others, then please SHARE with your family and friends. It helps this channel to GROW and your loved ones can also learn Web Development for FREE. Best Wishes!
Thank you so much. I'm really glad that the tutorials were helpful to you. Hope you complete all tutorials soon. Also if you think the tutorials could be helpful to others, then please SHARE with your family and friends. It helps this channel to GROW and your loved ones can also learn Web Development for FREE. Best Wishes!
Thank You So Much @Linus Mugera, I'm really glad that you're enjoying the course. And if you think the course is helpful to you and can be helpful to others as well, then please SHARE with your family and friends. It helps this channel to GROW and your loved ones can also learn Web Development for FREE. Thanks and Regards!
@@VijayThapa You most welcome, Definitely I will share it with my fellow junior developers and help the channel grow. I want to be among the best developers in Africa that has graduated from your channel better coach us well
I'm really glad that the tutorials were helpful to you. Also if you think the tutorials could also be helpful to others, then please SHARE with your family and friends. It helps this channel to GROW and your loved ones can also learn Web Development for FREE. Thank You So Much!
You're welcome @Benn. Hope you enjoyed the tutorial. And It'd be a great support to grow this channel if you share the videos with your loved ones. It also helps your friends and family to learn Software and Web Development for FREE. Bes Wishes!
Thank You So Much. Hope the tutorials were helpful to you. Also if you think the tutorials could be helpful to others, then please SHARE with your family and friends. It helps this channel to GROW and your loved ones can also learn Web Development for FREE. Thanks and Regards!
Wow! That's really amazing. And I'm really glad that the course was helpful. Hope to see your awesome new projects as well. Also if you think the course could be helpful to others then please SHARE with your family and friends. It helps this channel to GROW and your loved ones can also learn Web Development for FREE. Thanks and Regards!
Similar to this, "Add User" could be your Register Page, "Login" could be your User Login. Concept is similar everywhere. Please try to understand logic no matter whose course you follow. Best Wishes!
What error do you get? Please check your code once. You might have some error. If needed, watch the tutorial once again and compare the code. It might help you to find the error and fix it. Thanks and Regards!
You’re welcome brother. Hope the tutorials are helpful to you. Also if you think the tutorials could be helpful to others, then please Share with your Family and Friends. It helps this channel to grow and your loved ones can also learn Web Development for Free. Thanks and Regards!
Hi Ahmed, Thank you so much for following the tutorials. Please follow the link below for complete tutorial playlist ua-cam.com/video/ZBgTzx46B8s/v-deo.html Best Wishes!
You are welcome! Hope you enjoyed the tutorials. Also if you think the tutorials could be helpful to others, then please SHARE with your family and friends. It helps this channel to GROW and your loved ones can also learn Web Development for FREE. Thanks and Regards!
hello sir please i cant log in to the system,when i link the login-check.php, it redirects me to login page with error message please log in to access admin panel even when i input correct user name and password.but it works well when i comment the login-check redirection thanks
@@VijayThapa me too sir when ever i include login-check.php, it always give the error message and redirect me to login.php, even I login with correct username and password, it doesn't work properly until I remove the include login-check.php can u help me please, also none of the session message display except this one, even I checked that the code correct. thanks in advance.
I'm really glad that the tutorials are helpful to you. Thank you so much for the suggestions. I really appreciate it and I'll try to make it better on new courses. Also if you think the tutorials could be helpful to others, then please SHARE with your family and friends. It helps this channel to GROW and your loved ones can also learn Web Development for FREE. Thanks and Regards!
28:31 i m unalbe to do login with new user like admin. Again n again it is showing me Username or password did not match. I have done all the steps properly and also applied md5. Please help
It's like whenever I try to include the file /login-check.php/. An Error message pops up and it requires me to login to grant access to the admin panel meanwhile I entered existed username & password implying to my database. Nonetheless, it can only work when I remove the include 'login-check.php' part. I have tried the previous methods you have provided to other people who posted about the same issues though. Thanks in advance.
Can you make it more clear please? Based on what I understood. This project does not require normal users to login. Only Admins need to, for managing categories, foods and orders. And yes it is possible to make same login for both users and admins, but access or roles must be different. Hope it's helpful. Thanks and Regards!
I'm really glad that you liked the tutorials. Hope they're helpful to you. Also if you think the tutorials could be helpful to others, then please SHARE with your family and friends. It helps this channel to GROW and your loved ones can also learn Web Development for FREE. Best Wishes!
This project is wonderful!! Had learnt new thing I have doubt I am unable to access the home page after authorization (through login page also). Plz help me in solving this error tq
Please check your code once again. You might have error in your SESSION or if-else condition. If needed, watch the tutorial once again and compare the code. It might help you to find the error and fix it. Best Wishes!
There's a security flaw with this design. If you include the login-check.php in menu, then you can still delete admin users by just accessing admin/delete-admin.php?id=[id] without needing to be logged in. I would suggest including login-check in pages that don't have the navigation menu as well. This doesn't seem like a very good modular design practice though, so I'd like to know if there's a good alternative. Maybe don't include constants in the login page and just hard wire the constant data for the login page. Then include login-check.php in constants and menu?
I also included login-check after constants and put the entire code in an if statement, so the code only parses if user session is set. This way if the user is logged in, the login-check doesn't do anything and the code works normally and deletes the user with the set id. If no user is logged on, the login-check will store the $_SESSION['no-login-message'] and redirect to login page and display the no-login-message. The code for deletion won't work cause it doesn't validate the if statement, so nothing happens, just a redirect and a message. I don't know if it's the right way, but it works for me. Code below:
after adding $session['user'] for check whether the user is logged in or not the browser shows "This page isn’t working localhost redirected you too many times. Try clearing your cookies." This message i can't slove it by clearing the caches and cookies what can i do?
That means, you've not written the code properly. Check your code after button clicked. Watch the tutorial once again if needed and compare the code. It might help you to find the error and fix it. Thanks and Regards!
Is your username & password correct? Also check whether you've encrypted password with MD5 while adding user, updating user and comparing user or not. If needed watch the tutorial once again and compare the code. It might help you to find the error and fix it. Thanks and Regards!
Did you understand the concept of authentication and authorization? If you've, then you can fix the issue in either condition. "Experiment More, Learn More". Thanks and Regards!
Register is similar to Add-Admin. You need to add "User Type" column in tbl_user where you save whether the user is "Admin" or "Normal User". I'll try to so something similar on new course. Best Wishes!
Thank You So Much! I'm really glad that you enjoyed the videos. Also if you think the tutorials were helpful to you and can help others as well, then please SHARE with your family and friends. It helps this channel to GROW and your loved ones can also learn Web/Software Development for FREE. Thanks and Regards!
Did anybody got the code work after adding login-check.php file. If so please help me. I got stuck. I got empty page with error "This page isn't working".
43:09 m getting a warning: : Undefined array key "no-login-message" in C:\xampp\htdocs\food-order\admin\login.php on line 23 although my code has no error... please tell about this warning message!!!
Just add with HTML tag. If you want to learn Web Design with HTML & CSS then please follow theses courses ua-cam.com/video/VaV_Ro8jpPY/v-deo.html Best Wishes!
Sir I've got an error of "localhost redirected you too many times (try clearing your cookies)" while login the admin page. what should i do? Even I clear cookies too still error isn't going
Check you login page code. You might have missed something. If needed, watch the tutorial once again and compare the code. It might help you to find the error and fix it. Thanks and Regards!
This is a really simple system targeted for Beginners, So I kept it simple. But if you have completed all the tutorials and understood the concept, then you should try adding password reset feature. It's easy when you understand the logic. Best Wishes!
Please check your form. You might have used input type text instead of password. If needed watch the tutorial once again and compare the code. It might help you to find the error and fix it. Best Wishes!
Hello Sir My question that You said that there is no login access for users/customers ..then why u made a login page for admin if there is login page for admin obiviously it will show to the users then if there is login page how you will hide it from user because if user can see that login page he will confused because there is no registration page for him to register and then login...so how will you hide that page from user and show for only admin to access admin dashbord
Sir My CSS file didnot shown in webpage source when I'm going to refresh it from login.php. This admin.css is working greatly in manage admin page . But this same file didnot working in login.php . Is there anyone who can help me . Please !
You need to add the link to css file at the top of login.php file. If needed, watch the tutorial once again and compare the code. It might help you to find the error and fix it. Thanks and Regards!
Then you might have error either on SQL query or getting the username and password values from form. Did you encrypt the password before passing in SQL Query?
@@omprakashmadkar2516 Then, I want you to watch the tutorial once again and compare the code. It might help you to find the error and fix it. Best Wishes!
I tried as show you but while clicking on login with correct user details it doesn't go into if statement rather goes into else statment. Can you please help with this?
Then you might have error either 1. in your SQL query 2. or you forget to encrypt the password while checking 3. or while adding admin Please check these places. If needed, watch the tutorial once again and compare the code. It might help you to find the error and fix it. Best Wishes!
Hello! Thanks for the video, very helpful! I have a question. What can i do without taking authentication out of the code if i forgot the admin password?
You will have to add "Forgot Password" feature. For that you can 1. Either generate random password, change it and send the new password via email 2. Or generate a new link to reset password and send it via email. Use session for time limit to reset the password. Please research on the concept of Forgot Password and Reset Password. Best Wishes!
Please complete this (Authorization) part successfully. If needed watch the tutorial once again and compare the code. It might help you to find the error and fix it. Thanks and Regards!
Hello sir thank you for those tutorials, i have a problem with this part, I can access all pages without login check (whenever i logout i can access pages), i failed to find where the problem is! can you help me?
Please check your code. You might have missed something. If needed, watch the tutorial once again and compare the code. It might help you to find the error and fix it. Thanks and Regards!
That's OK as long as you understand the SESSION concept. Read more about ob_start() from the link below www.vijaythapa.com.np/2021/08/how-to-fix-headers-already-sent-error.html Thanks and Regards!
Sir, i have an error , when create after login page and type admin and password , then display "fater error, call to undefined function mysqli_num_row()." Please help solve this
@@luckymusic5505 User Registration is same as "Add Admin" and User Login is same as Admin Login. You just need to add "user_type" column on database to know admin or customer.
@@VijayThapa Bro add to "user_type" column in to add admin table or create new table like user table and also create add user php and user login php . Is this correct
@@luckymusic5505 Since all the properties of User and Admin are similar, why would you create different tables. Please learn more about Relational Databases and It's Properties.
You might have error in setting sessions. Please watch the tutorial once again and compare the code. It might help you to find the error and fix it. Thanks and Regards!
Then you might have some error in your code. Check your SQL Query, or password encryption or redirection. If needed, watch the tutorial once again and compare the code. It might help you to find the error and fix it. Best Wishes!
In login.php, if($count==1) didnot work since we did not check for query execution i.e if($res==TRUE).. But when I did if($count==TRUE), it worked. and it worked in you for ($count==1). why is that so.
I assumed that the query is executed successfully every time, so did not check $res==TRUE. And you must check $COUNT with numerical value not with boolean because $count returns numerical value not TRUE/FALSE. If $count==1 is not working, then you might have error in your query. Please don't use $count==TRUE.
The design of this project doesn't need customer login. But in case you need it, Customer register is similar to "Add-Admin", and Customer Login is similar to "Admin Login". Best Wishes!
Sir , my database data has vanished ...as my friend reinstalled xampp app again ..all my data in database has gone ..and now I am not able to login to my admin page ..pls help me out
First Create or import Database, then Try doing one of the following 1. Add admin manually on database but password must be encrypted with MD5 2. Comment out "login-check.php" on menu.php and then go to "add-admin.php". And add the user and then remove comment from for login-check. Best Wishes!
You may have error in your code (Check If-Else statement, sessions and redirections). If needed, watch the tutorial once again and compare the code. It might help you to find the error and fix it. Best Wishes!
Only for Admin. Users can order food by submitting their email address and phone number. This project is for beginners so kept it simple so that they can understand all the logics. Thanks and Regards!
No it does not. If you want to learn about triggers, then I would like you to follow more advanced course like following ua-cam.com/video/Tvw1qSubn6U/v-deo.html Best Wishes!
Please check your if-else statement. If needed, watch the tutorial once again and compare the code. It might help you to find the error and fix it. Thanks and Regards!
@@VijayThapa yes sir did that already resolved ..... Thank you so much 😊😊 please tell me how can I connect with you ?? Bcoz I'm making my college project refering this series so I might face prblm again in future
Thank you sir you're awesome teacher and great tutorial series I recommend it specially beginners will learn a lot here do like, share, and subscribe...
You might have error in redirection code. Please check it once again. If needed, watch the tutorial and compare the code. It might help you to find the error and fix it. Best Wishess!
You might have missed something. Please watch the tutorial once again and compare the code. It might help you to find the error and fix it. Best Wishes!
Then you might have error in your redirection. Please check your code on redirecting the page. If needed, Watch the tutorial once again . It might help you to find the error and fix it. Best Wishes!
Did you encrypt the password while adding, updating user and while login? If needed, watch the tutorial once again and compare the code. It might help you to find the error and fix it. Thanks and Regards!
You might have error in your SQL query. What error message do you get? If needed, watch the tutorial once again and compare the code. It might help you to find the bug and fix it. Best Wishes!
I'm really glad that you enjoyed the tutorials. Hope it's helpful to you. Please email me at hi@vijaythapa.com for the source code. Thanks and Regards!
Hello sir Yes sir all tutorials are useful to me but my project submission date have been declared so i send you a mail regarding to project Thank you sir for helping me
@@ParthPatel-cs3pw It's because, you did not encrypt password while checking username and password before login. I think you did not understand the concept of encryption. Best Wishes!
Sir, I am making mini project. You have mande an admin panel but I'm still wondering In this project have you given option to log in and register user also?
No, In this project user doesn't need to register/login. This project was for complete beginner, So made it simple to understand. But if you want to add register/login for user, then Register is same ass "Add Admin" and Login is same as "Admin Login". You can try it. Best Wishes!
Also if you think the tutorials has helped you and can help others as well, then please SHARE with your family and friends. It helps this channel to GROW and your loved ones also can learn Web Development for FREE. Thanks and Regards!
If you're complete Beginner, Start with Web Design (HTML & CSS), 1. Restaurant Website Design ua-cam.com/video/VaV_Ro8jpPY/v-deo.html 2. Personal Portfolio Website Design ua-cam.com/video/Z2ALIr-0mgY/v-deo.html Then, PHP and MySQL 1. Task Manager App ua-cam.com/video/1rl36zxqZZw/v-deo.html 2. Food Order Website ua-cam.com/video/ZBgTzx46B8s/v-deo.html Best Wishes!
@@VijayThapa please help me bro how to write contact form in php mysql database please guide to me . I got a lot of knowledge from your food order website tutorial but still left contact form please show me how write. Sir my english is not good please try to read me i hope u will understand my language
Then you might have error either on SQL query or getting the username and password values from form. Did you encrypt the password before passing in SQL Query? Please watch the tutorial once again and compare the code. It might help you to find the error and fix it. Best Wishes!
Check you redirection code after login successful. If needed, watch the tutorial once again and compare the code. It might help you to find the error and fix it. Best Wishes!
Then you might have error in your redirection. Please check your code on redirecting the page. If needed, Watch the tutorial once again and compare the code . It might help you to find the error and fix it. Best Wishes!
Thank you so much for following the tutorial and Hope you completed all the episodes. And if you've completed the tutorials, then why don't you try adding that feature by yourself. It helps you to develop self-learning and reasoning skills (must have skills on senior developers). I'll be adding such features on my new course for intermediate/advanced developers. Best Wishes!
Another admin will have to change the password. Also if you understand the concept of change password, you can try adding forget password feature as well. That'll be a test for you. Best Wishes!
This has become my favorite time pass now, coding with vijay. Please make many more tutorials.
I'm really glad that you're enjoying the course.
Also if you think the tutorials could be helpful to others, then please SHARE with your family and friends.
It helps this channel to GROW and your loved ones can also learn Web Development for FREE.
Thanks and Regards!
You are the best vijay,,continue mentoring people it really goes a long way bro, i appreciate alot!
Thank you so much for following the tutorials.
And I'm really glad that you enjoyed the course.
Also if you think the tutorials could be helpful to others, then please SHARE with your family and friends.
It helps this channel to GROW and your loved ones can also learn Web Development for FREE.
Thank you so much for your love and support.
28:28 this time you tell about md5 before that I tried many times but I failed and I started to find errors .. so funny . you are a great teacher
I'm really glad that the tutorials are helpful to you.
Hope you complete all the episodes soon.
Best Wishes!
1:15 create login page
2:10 link css
2:45 design page
4:40 css - login, width, border
5:35 refresh css page source
6:40 css - margin
7:20 css - padding
7:40 align text to center
8:30 create form
12:20 align text in form
13:30 login functionality
14:00 php - isset(), check submit button is clicked
15:00 php - get data from login form
16:50 php - sql statement find user
18:00 php - execute the query
18:30 include constants file
20:00 php - check if user exists
21:25 php - $_SESSION[], test message for login
22:35 php - header(), redirect to admin dashboard
24:00 error message if invalid login in login page
25:10 success message login in dashboard page
26:00 align text for message
27:50 php - md5()
29:00 add logout button in partials/menu
29.30 create logout page
30:20 destroy session
31:20 include constants
33:00 access control, $_SESSION[‘user’]
34:15 unset() user
37:00 create partials/login-check page
37:50 check if user not logged in yet
40:30 include login-check in menu page
42:00 error message in login page if user not logged
42:55 align text for error message
Finished, well done!
I'm really glad that you're enjoying the course.
Hope you complete all the tutorials soon.
Thanks and Regards!
Sir, all are working nicely...
Thank you so much
Awesome 👏
Hope you completed all the tutorials.
Thanks and Regards!
thank you so much for your effort in this course.
My pleasure!
Hope you completed all the tutorials and were helpful to you.
Thanks and Regards!
Learn so much from this one and excellent explanation. Thanks for sharing to us!
I'm really glad that it was helpful to you.
Hope you completed all the tutorials.
Also if you think the tutorials could be helpful to others, then please SHARE with your family and friends.
It helps this channel to GROW and your loved ones can also learn Web Development for FREE.
Thanks and Regards!
All the best m. Thapa
You really hild me levevls up in coding
Thank you so much.
I'm really glad that the tutorials were helpful to you.
Also if you think the tutorials could be helpful to others, then please SHARE with your family and friends.
It helps this channel to GROW and your loved ones can also learn Web Development for FREE.
Thank you so much for your love and support.
i hope you doing well Vijay! thankyouuu for this course
It's all good now brother.
Thank you so much for following the course.
Hope it's helpful to you.
Also if you think the tutorials could be helpful to others, then please SHARE with your family and friends.
It helps this channel to GROW and your loved ones can also learn Web Development for FREE.
Best Wishes!
4th stage and already learned a lot ! :X
I'm really glad to know that the tutorials are helpful to you.
Best Wishes for further learning.
Also if you think the tutorials could be helpful to others, then please SHARE with your family and friends.
It helps this channel to GROW and your loved ones can also learn Web Development for FREE.
Thanks and Regards!
the best Man ,good content
Thank You So Much @Ibrahim khed.
I'm really glad that you're enjoying the course.
Also if you think they can be helpful to others, then please SHARE with your family and friends.
It helps this channel to GROW and your loved ones can also learn Web Development for FREE.
Best Wishes!
Very helpful Video 👍
Thank you so much.
I'm really glad that the tutorials were helpful to you.
Hope you complete all tutorials soon.
Also if you think the tutorials could be helpful to others, then please SHARE with your family and friends.
It helps this channel to GROW and your loved ones can also learn Web Development for FREE.
Best Wishes!
Good job Vijay a good teacher and a great coach in programming
Thank You So Much @Linus Mugera,
I'm really glad that you're enjoying the course.
And if you think the course is helpful to you and can be helpful to others as well, then please SHARE with your family and friends.
It helps this channel to GROW and your loved ones can also learn Web Development for FREE.
Thanks and Regards!
@@VijayThapa You most welcome, Definitely I will share it with my fellow junior developers and help the channel grow. I want to be among the best developers in Africa that has graduated from your channel better coach us well
My advice for this one to make it easier to reload 6:13
just hold CTRL+SHIFT then click R
to reload it fully
Awesome 👏
thank you for this tutorial, man!
I'm really glad that the tutorials were helpful to you.
Also if you think the tutorials could also be helpful to others, then please SHARE with your family and friends.
It helps this channel to GROW and your loved ones can also learn Web Development for FREE.
Thank You So Much!
I wish I found your channel earlier, Your videos are very easy to understand.
Glad you like them!
Hope you complete all the tutorials soon.
Best Wishes!
Thank you, I was looking for this..
You're welcome @Benn.
Hope you enjoyed the tutorial.
And It'd be a great support to grow this channel if you share the videos with your loved ones.
It also helps your friends and family to learn Software and Web Development for FREE.
Bes Wishes!
How many episodes will be uploaded for This series
Around 5 - 6 episodes more.
So In total (10 episodes) in this course.
Good video. Keep it up 💕
Thank You So Much.
Hope the tutorials were helpful to you.
Also if you think the tutorials could be helpful to others, then please SHARE with your family and friends.
It helps this channel to GROW and your loved ones can also learn Web Development for FREE.
Thanks and Regards!
It's amazing series & plz make the big ecom project
I’m really glad that you enjoyed the course.
And for sure I’ll make new courses.
Hope to see you on new courses.
Thanks and Regards!
Master thank u awesome for me. Keep pushing sir .
Thank You So Much @Emmy.
And I'm really glad to know that you're enjoying this course as well.
Best Wishes!
Thank u sir
I have done My minor project with the help of your this video ..
Wow! That's really amazing. And I'm really glad that the course was helpful.
Hope to see your awesome new projects as well.
Also if you think the course could be helpful to others then please SHARE with your family and friends.
It helps this channel to GROW and your loved ones can also learn Web Development for FREE.
Thanks and Regards!
Can you send the code
Thank you very much!
You're welcome!
28:25 That md5 isn't working. It show same Username and password did not match after using md5 also
You might have error in your code.
Please check it once.
Best Wishes!
Please am following this for my real estate website. How can i convert this user login to book an inspection page?
Similar to this,
"Add User" could be your Register Page,
"Login" could be your User Login.
Concept is similar everywhere.
Please try to understand logic no matter whose course you follow.
Best Wishes!
at 28:39, i am not able to redirect to dashboard even after adding a new admin in the DB , plzzzzzz someone help me
What error do you get?
Please check your code once.
You might have some error.
If needed, watch the tutorial once again and compare the code.
It might help you to find the error and fix it.
Thanks and Regards!
@@VijayThapa tysm for the reply...i got it done
Thank you ❤
You’re welcome brother.
Hope the tutorials are helpful to you.
Also if you think the tutorials could be helpful to others, then please Share with your Family and Friends.
It helps this channel to grow and your loved ones can also learn Web Development for Free.
Thanks and Regards!
I learn a lot from your tutorial. where the part 2 and 3?
Hi Ahmed, Thank you so much for following the tutorials.
Please follow the link below for complete tutorial playlist
ua-cam.com/video/ZBgTzx46B8s/v-deo.html
Best Wishes!
Thank you very much
You are welcome!
Hope you enjoyed the tutorials.
Also if you think the tutorials could be helpful to others, then please SHARE with your family and friends.
It helps this channel to GROW and your loved ones can also learn Web Development for FREE.
Thanks and Regards!
thank you sir so much, but i want to ask if later on the project we could order food? and could it be end at the last of december?
Hi @zhuge liang,
Thank you so much for following the tutorials.
And yes, the course will be completed by the end of this December.
Thanks and Regards!
hello sir please i cant log in to the system,when i link the login-check.php, it redirects me to login page with error message please log in to access admin panel even when i input correct user name and password.but it works well when i comment the login-check redirection thanks
same here bro
Try adding following code at the top of "constants.php" file.
Thanks and Regards!
@@VijayThapa me too sir when ever i include login-check.php, it always give the error message and redirect me to login.php, even I login with correct username and password, it doesn't work properly until I remove the include login-check.php can u help me please, also none of the session message display except this one, even I checked that the code correct.
thanks in advance.
@@VijayThapa Well this doesn't work for me tho.
@@lnnovati Instead of creating a separate file for "login-check", try adding the code inside it at the top of menu.php or index.php
thanks a lot...it is very good and best...it would be better use biger font in your editor...its better for eyes! (from iran)
I'm really glad that the tutorials are helpful to you.
Thank you so much for the suggestions.
I really appreciate it and I'll try to make it better on new courses.
Also if you think the tutorials could be helpful to others, then please SHARE with your family and friends.
It helps this channel to GROW and your loved ones can also learn Web Development for FREE.
Thanks and Regards!
28:31 i m unalbe to do login with new user like admin. Again n again it is showing me Username or password did not match. I have done all the steps properly and also applied md5. Please help
While adding the admin, did you encrypt the password?
or did you encrypt the password while login?
Please check those and let me know.
@@VijayThapa I had solved my problem sir. Thank you 😊
@@shamstabrezkhan9550 how did u solve it coz i have the same problem?
It's like whenever I try to include the file /login-check.php/. An Error message pops up and it requires me to login to grant access to the admin panel meanwhile I entered existed username & password implying to my database. Nonetheless, it can only work when I remove the include 'login-check.php' part. I have tried the previous methods you have provided to other people who posted about the same issues though. Thanks in advance.
Try adding the code inside the login-check.php at the top of menu.php or index.php
It might fix the error.
Best Wishes!
same problem bro ,what i do resolve this problem
hi, were you able to fix the problem?
Sir, is it possible to a user to access the foods available and login through the same login page of admin???
Can you make it more clear please?
Based on what I understood.
This project does not require normal users to login. Only Admins need to, for managing categories, foods and orders.
And yes it is possible to make same login for both users and admins, but access or roles must be different.
Hope it's helpful.
Thanks and Regards!
Fantastic series
I'm really glad that you liked the tutorials.
Hope they're helpful to you.
Also if you think the tutorials could be helpful to others, then please SHARE with your family and friends.
It helps this channel to GROW and your loved ones can also learn Web Development for FREE.
Best Wishes!
Sure sir..
Thank you sir
I need your help. I have a problem in If (count==1) in login it read the first condition only and doesn't check the second one
Email me at hi@vijaythapa.com with the screenshot of your error and code.
Thanks and Regards!
This project is wonderful!! Had learnt new thing I have doubt I am unable to access the home page after authorization (through login page also). Plz help me in solving this error tq
Please check your code once again.
You might have error in your SESSION or if-else condition.
If needed, watch the tutorial once again and compare the code.
It might help you to find the error and fix it.
Best Wishes!
There's a security flaw with this design. If you include the login-check.php in menu, then you can still delete admin users by just accessing admin/delete-admin.php?id=[id] without needing to be logged in. I would suggest including login-check in pages that don't have the navigation menu as well. This doesn't seem like a very good modular design practice though, so I'd like to know if there's a good alternative. Maybe don't include constants in the login page and just hard wire the constant data for the login page. Then include login-check.php in constants and menu?
I also included login-check after constants and put the entire code in an if statement, so the code only parses if user session is set. This way if the user is logged in, the login-check doesn't do anything and the code works normally and deletes the user with the set id. If no user is logged on, the login-check will store the $_SESSION['no-login-message'] and redirect to login page and display the no-login-message. The code for deletion won't work cause it doesn't validate the if statement, so nothing happens, just a redirect and a message. I don't know if it's the right way, but it works for me. Code below:
after adding $session['user'] for check whether the user is logged in or not the browser shows "This page isn’t working localhost redirected you too many times.
Try clearing your cookies." This message i can't slove it by clearing the caches and cookies what can i do?
It should be " $_SESSION['session_variable'] "
not $session.
Thanks and Regards!
Sir I'm not getting value at 15:57 my page just refresh and nothing happens! Please help
That means, you've not written the code properly.
Check your code after button clicked.
Watch the tutorial once again if needed and compare the code.
It might help you to find the error and fix it.
Thanks and Regards!
@@VijayThapa okay sir thank you👍
hello sir what if my log in page if i try to type the user and password i cannot enter into the pages different pages
Is your username & password correct?
Also check whether you've encrypted password with MD5 while adding user, updating user and comparing user or not.
If needed watch the tutorial once again and compare the code.
It might help you to find the error and fix it.
Thanks and Regards!
last session is not working. After logout, I can go to all pages and it is not asking for login admin. May you please help me out. why?
Please watch the tutorial once again and compare the code.
It might help you to find the error and fix it.
Thanks and Regards!
I want to ask you,
The user can go to login page if he login or he must be logout from his account at first ?
All regards from GAZA❤
Did you understand the concept of authentication and authorization?
If you've, then you can fix the issue in either condition.
"Experiment More, Learn More".
Thanks and Regards!
@Vijay Thapa if i want to add register for this webiste and connected to database how do i add?
Register is similar to Add-Admin.
You need to add "User Type" column in tbl_user where you save whether the user is "Admin" or "Normal User".
I'll try to so something similar on new course.
Best Wishes!
@@VijayThapaokok Thanks you.
yamete kudasai! this video is great!
Thank You So Much!
I'm really glad that you enjoyed the videos.
Also if you think the tutorials were helpful to you and can help others as well, then please SHARE with your family and friends.
It helps this channel to GROW and your loved ones can also learn Web/Software Development for FREE.
Thanks and Regards!
Did anybody got the code work after adding login-check.php file. If so please help me. I got stuck. I got empty page with error "This page isn't working".
you might have error on either including the login-check file or redirection path.
Please check it once.
43:09
m getting a warning: : Undefined array key "no-login-message" in C:\xampp\htdocs\food-order\admin\login.php on line 23
although my code has no error... please tell about this warning message!!!
Do you have anything called "no-login-message"?
How to add an images in login and register's page background?
Just add with HTML tag.
If you want to learn Web Design with HTML & CSS then please follow theses courses
ua-cam.com/video/VaV_Ro8jpPY/v-deo.html
Best Wishes!
can i get the code .
thank you so much ...this series helpes me alot in my lab project....
Sir I've got an error of "localhost redirected you too many times (try clearing your cookies)" while login the admin page. what should i do? Even I clear cookies too still error isn't going
Check you login page code.
You might have missed something.
If needed, watch the tutorial once again and compare the code.
It might help you to find the error and fix it.
Thanks and Regards!
Thank u soo much these tutorials really help me.. what happens if the admin forget the password plz include that functionality also in this project.
This is a really simple system targeted for Beginners, So I kept it simple.
But if you have completed all the tutorials and understood the concept, then you should try adding password reset feature.
It's easy when you understand the logic.
Best Wishes!
Hello sir again. Great tutorial.
in my login page my password is showing while I type it. It doesnt get stared(***). How can I fix it?
Please check your form.
You might have used input type text instead of password.
If needed watch the tutorial once again and compare the code.
It might help you to find the error and fix it.
Best Wishes!
@@VijayThapa thank you sir it worked
you can Decentralize PHP admins
Hello Sir My question that You said that there is no login access for users/customers ..then why u made a login page for admin if there is login page for admin obiviously it will show to the users then if there is login page how you will hide it from user because if user can see that login page he will confused because there is no registration page for him to register and then login...so how will you hide that page from user and show for only admin to access admin dashbord
I have too this problem Please help solve this one
Sir My CSS file didnot shown in webpage source when I'm going to refresh it from login.php. This admin.css is working greatly in manage admin page . But this same file didnot working in login.php . Is there anyone who can help me . Please !
You need to add the link to css file at the top of login.php file.
If needed, watch the tutorial once again and compare the code.
It might help you to find the error and fix it.
Thanks and Regards!
@@VijayThapa Thank you Sir !
Sir I have one problem in login page .. I put in right username or password but this also show login failed or username and pass wrong
Then you might have error either on SQL query or getting the username and password values from form.
Did you encrypt the password before passing in SQL Query?
@@VijayThapa sir I already many time check it.. i encrypt pass also. But also show username and pass wrong
@@VijayThapa didn't show any error sir
@@omprakashmadkar2516 Then, I want you to watch the tutorial once again and compare the code.
It might help you to find the error and fix it.
Best Wishes!
Do you solve this problem? Im having this also please help meee
I tried as show you but while clicking on login with correct user details it doesn't go into if statement rather goes into else statment. Can you please help with this?
Then you might have error either
1. in your SQL query
2. or you forget to encrypt the password while checking
3. or while adding admin
Please check these places.
If needed, watch the tutorial once again and compare the code.
It might help you to find the error and fix it.
Best Wishes!
Hello! Thanks for the video, very helpful! I have a question. What can i do without taking authentication out of the code if i forgot the admin password?
You will have to add "Forgot Password" feature.
For that you can
1. Either generate random password, change it and send the new password via email
2. Or generate a new link to reset password and send it via email. Use session for time limit to reset the password.
Please research on the concept of Forgot Password and Reset Password.
Best Wishes!
in the login-check. php file use if( isset($_SESSOIN['user'])) instead of if(!isset($_SESSION['user']))
@@VijayThapa great idea! Thanks! :)
Hi sir when I browse the dash board its coming without login form.
Please complete this (Authorization) part successfully.
If needed watch the tutorial once again and compare the code.
It might help you to find the error and fix it.
Thanks and Regards!
Hello sir thank you for those tutorials, i have a problem with this part, I can access all pages without login check (whenever i logout i can access pages), i failed to find where the problem is! can you help me?
Please check your code.
You might have missed something.
If needed, watch the tutorial once again and compare the code.
It might help you to find the error and fix it.
Thanks and Regards!
Your tutorial is amazing and holds lot of informations. Could you please share me these complete backend code for reference?
Email me at hi@vijaythapa.com.
Thank you so much for following the tutorials.
@@VijayThapa sir i also sent you the email
Please share with me too i need it urgent
Please help me brother, I Am entering right credentials still it shows Please login to access Admin Panel 🥺😭
Please check whether your password is encrypted or not while
1. adding user
2.updating user
3. login check
Thanks and Regards!
Sir I have some errors in my code please help me 🙏🙏🙏
I watched it thrice a day past 2 days
Couldn't able to rectify my problem
Please help me sir🙏🙏🙏🙏
What's the error?
Please email me at hi@vijaythapa.com with the screenshot of your error and code.
Thanks and Regards!
great tutorial but the sessions only work for me if I apply ob_start() at the beginning of the files, otherwise the sessions get mixed up.
That's OK as long as you understand the SESSION concept.
Read more about ob_start() from the link below
www.vijaythapa.com.np/2021/08/how-to-fix-headers-already-sent-error.html
Thanks and Regards!
Sir, i have an error , when create after login page and type admin and password , then display "fater error, call to undefined function mysqli_num_row()." Please help solve this
It's mysqli_num_rows().
can you download everything you have done here?
Please help me how to add users to login this system
Please follow this course from the first episode.
This is the 4th one.
Best Wishes!
@@VijayThapa Ok brother , User registration input password and username how can I do this step . This one only access admin
@@luckymusic5505 User Registration is same as "Add Admin" and User Login is same as Admin Login.
You just need to add "user_type" column on database to know admin or customer.
@@VijayThapa Bro add to "user_type" column in to add admin table or create new table like user table and also create add user php and user login php . Is this correct
@@luckymusic5505 Since all the properties of User and Admin are similar, why would you create different tables.
Please learn more about Relational Databases and It's Properties.
In login page if we dont see that successfully or failed after all the step I followed what is the solution of this
Anyone have the solution for this
You might have error in setting sessions.
Please watch the tutorial once again and compare the code.
It might help you to find the error and fix it.
Thanks and Regards!
Hi, Sir. When I logged in I kept on coming back to login.php saying "Please login to access Admin Panel." though my password and username are right.
Then you might have some error in your code.
Check your SQL Query, or password encryption or redirection.
If needed, watch the tutorial once again and compare the code.
It might help you to find the error and fix it.
Best Wishes!
Can we showcase this project in our resume...? Will it be impactful
Yes, Sure.
If possible upload your version on Github as well.
Best Wishes!
can i get the source code of this projct ..pls because i did an error in any of my page..i dont knw where to correct it ..
Hi there, please email me at hi@vijaythapa.com
In login.php, if($count==1) didnot work since we did not check for query execution i.e if($res==TRUE)..
But when I did if($count==TRUE), it worked. and it worked in you for ($count==1).
why is that so.
I assumed that the query is executed successfully every time, so did not check $res==TRUE.
And you must check $COUNT with numerical value not with boolean because $count returns numerical value not TRUE/FALSE.
If $count==1 is not working, then you might have error in your query.
Please don't use $count==TRUE.
Apache/2.4.46 (Win64) OpenSSL/1.1.1h PHP/7.4.12 Server at localhost Port 80
this error shows when I clicked the css in the view source.
Then check your CSS link once.
Is your XAMPP (Apache and MySQL) running fine?
@@VijayThapa I resolved it already. Thaaanks . 🤗
I got same error I don't know how to resolve can you please help 🥺
@@VijayThapa please help sir
@@akshitchandpara947 What's the error?
Email me at hi@vijaythapa.com with the screenshot of your error and code.
Can anyone help in setting login page for customer
The design of this project doesn't need customer login.
But in case you need it, Customer register is similar to "Add-Admin",
and Customer Login is similar to "Admin Login".
Best Wishes!
Sir , my database data has vanished ...as my friend reinstalled xampp app again ..all my data in database has gone ..and now I am not able to login to my admin page ..pls help me out
I tried inserting values in the database table ..but then also not able to access login through those values
First Create or import Database, then
Try doing one of the following
1. Add admin manually on database but password must be encrypted with MD5
2. Comment out "login-check.php" on menu.php and then go to "add-admin.php".
And add the user and then remove comment from for login-check.
Best Wishes!
please helep me ,the loigin-check is not workin to me
You may have error in your code (Check If-Else statement, sessions and redirections).
If needed, watch the tutorial once again and compare the code.
It might help you to find the error and fix it.
Best Wishes!
there is no user log in for customer?
Only for Admin.
Users can order food by submitting their email address and phone number.
This project is for beginners so kept it simple so that they can understand all the logics.
Thanks and Regards!
does tjis project include triggers concept ?
No it does not.
If you want to learn about triggers, then I would like you to follow more advanced course like following
ua-cam.com/video/Tvw1qSubn6U/v-deo.html
Best Wishes!
after writing the !isset, i cannot login, can someone help??
Please check your if-else statement.
If needed, watch the tutorial once again and compare the code.
It might help you to find the error and fix it.
Thanks and Regards!
I get an error in log in check file on SITEURL plzz help me i am stuck
Please email me at hi@vijaythapa.com with the screenshot of your error and code.
Thanks and Regards!
My every username and password which I'm passing ..... They are been displayed in the url ..... After localhost/admin.......... Please help sir
Is your form method GET?
Change it to POST.
@@VijayThapa yes sir did that already resolved ..... Thank you so much 😊😊 please tell me how can I connect with you ?? Bcoz I'm making my college project refering this series so I might face prblm again in future
Thank you sir you're awesome teacher and great tutorial series I recommend it specially beginners will learn a lot here do like, share, and subscribe...
You are very welcome
Sir, it said that I made too many redirections to index.php whenever I logged in to admin dashboard. My codes are correct too.
You might have error in redirection code.
Please check it once again.
If needed, watch the tutorial and compare the code.
It might help you to find the error and fix it.
Best Wishess!
@@VijayThapa okay sir thank you💛
@@nini_ninya5488 You're welcome!
after giving authorization ,then going to login ,then it cant login what i do
You might have missed something.
Please watch the tutorial once again and compare the code.
It might help you to find the error and fix it.
Best Wishes!
My login page is not working nothing is displayed on clicking submit I'm on the page itself no error in fact please help
Then you might have error in your redirection.
Please check your code on redirecting the page.
If needed, Watch the tutorial once again . It might help you to find the error and fix it.
Best Wishes!
I having a problem with the code. I have entered the correct username and password. but also warns that Please login to access Admin panel
Did you encrypt the password while adding, updating user and while login?
If needed, watch the tutorial once again and compare the code.
It might help you to find the error and fix it.
Thanks and Regards!
my authorization part is not working however i repeat the same steps that you taught us in video
Please watch the tutorial once again and compare the code.
It might help you to find the error and fix it.
Sure sir..thank you for your response
Hi sir I'm getting redirected to login page whenever I enter correct username and password
Do you get any other error messages?
Sir, why i am getting a warning in mysqli_num_rows statement ?
You might have error in your SQL query.
What error message do you get?
If needed, watch the tutorial once again and compare the code.
It might help you to find the bug and fix it.
Best Wishes!
@@VijayThapa expects parameter 1 to be mysqli_result
@@rosemaryjojo2545 Check your SQL Query.
And follow the instructions I told you earlier.
Sir your tutorials is really good can you send the full source code with database please
I'm really glad that you enjoyed the tutorials.
Hope it's helpful to you.
Please email me at hi@vijaythapa.com for the source code.
Thanks and Regards!
Hello sir
Yes sir all tutorials are useful to me but my project submission date have been declared so i send you a mail regarding to project
Thank you sir for helping me
Sir can i get the source code for this project?
I'm getting an error called too many redirects could you pls help me with this..
You might have error in your redirections.
@@VijayThapa Yes sir I got it! Thank you.
Sir, after login with correct username and password it is redirecting to login page again. What's the error ?
Do you get any error message?
@@VijayThapa no
@@akhilkhandelwal3927 same issue if u solved it let me know plzz
hey remove md5(password) from add admin worked for me
@@ParthPatel-cs3pw It's because, you did not encrypt password while checking username and password before login.
I think you did not understand the concept of encryption.
Best Wishes!
Sir, I am making mini project. You have mande an admin panel but I'm still wondering In this project have you given option to log in and register user also?
No, In this project user doesn't need to register/login.
This project was for complete beginner, So made it simple to understand.
But if you want to add register/login for user, then Register is same ass "Add Admin" and Login is same as "Admin Login".
You can try it.
Best Wishes!
@@VijayThapa Thank you Sir for your words
@@sanketmule9599 You're welcome Brother!
Also if you think the tutorials has helped you and can help others as well, then please SHARE with your family and friends.
It helps this channel to GROW and your loved ones also can learn Web Development for FREE.
Thanks and Regards!
@@VijayThapa sure bro!
thanks a lot bro i am beginner i want to learn please guide to me
If you're complete Beginner, Start with Web Design (HTML & CSS),
1. Restaurant Website Design
ua-cam.com/video/VaV_Ro8jpPY/v-deo.html
2. Personal Portfolio Website Design
ua-cam.com/video/Z2ALIr-0mgY/v-deo.html
Then, PHP and MySQL
1. Task Manager App
ua-cam.com/video/1rl36zxqZZw/v-deo.html
2. Food Order Website
ua-cam.com/video/ZBgTzx46B8s/v-deo.html
Best Wishes!
@@VijayThapa please help me bro how to write contact form in php mysql database please guide to me . I got a lot of knowledge from your food order website tutorial but still left contact form please show me how write. Sir my english is not good please try to read me i hope u will understand my language
@@zayarlwin9352 It's easy, you can follow the link below and try it
www.tutorialspoint.com/php/php_sending_emails.htm
Best Wishes!
I have check many time it.. why show wrong username or pass .. so plese help me sir
Then you might have error either on SQL query or getting the username and password values from form.
Did you encrypt the password before passing in SQL Query?
Please watch the tutorial once again and compare the code.
It might help you to find the error and fix it.
Best Wishes!
@@VijayThapa sir.. how can I solve this problem tell me. Sir it's imp for me
@@VijayThapa yes sir I was encrypted pass
@@omprakashmadkar2516 having this issue..... kingly lemme know if you have solve it
sir i cant log in can you pls tell me why?
What error do you get?
login successful but not connect with dashboard
Check you redirection code after login successful.
If needed, watch the tutorial once again and compare the code.
It might help you to find the error and fix it.
Best Wishes!
I'm getting an error this page isn't working saying redirected many times
Then you might have error in your redirection.
Please check your code on redirecting the page.
If needed, Watch the tutorial once again and compare the code . It might help you to find the error and fix it.
Best Wishes!
Sir i want forgot password button coding in this login authentication
Thank you so much for following the tutorial and Hope you completed all the episodes.
And if you've completed the tutorials, then why don't you try adding that feature by yourself.
It helps you to develop self-learning and reasoning skills (must have skills on senior developers).
I'll be adding such features on my new course for intermediate/advanced developers.
Best Wishes!
hello sir, what happens when someone forgets the password?
Another admin will have to change the password.
Also if you understand the concept of change password, you can try adding forget password feature as well.
That'll be a test for you.
Best Wishes!