Thanks for the great video! The only issue I had was I had my 2 step verification on in my gmail account, and I was testing it with my regulat gmail password and it did not work. Once I created and used an extra app password through the 2 step verification links, it worked like a charm!! Thanks again!
I don't usually comment on videos but this one leave me with no hope it's more than good for me to keep quiet ..♥️♥️♥️🤯 immediately I just subscribed and hit bell all
One thing I have noticed with your code is it is very simplified. The one thing I do not understand is why you do not use prepared statements when you are working with mysql database. It is known this is a security flaw to avoid "sql injections." Regardless if you are working with a "localhost" for those who want to use these on a LIVE server, may be put at risk. Has something changed recently that this is not practiced anymore? These should be meant as STRICTLY as tutorials and not a means of use on public servers. Correct me if I am wrong here.
yes, its always better to use prepared statements. i use them in more detailed videos on the channel, however they are not good for teaching purposes when it comes to simple code like this. its better to learn the basics first, then advance to prepared statements later if you need to. a bomb is good at destroying things, but its not always the best tool. in my code i use "addslashes" function to escape any suspicious text in the variables. this is usually enough to block sql injection. unless you're running a bank or financial institution, this is more than enough. people who run banks and applications that need more security than that are not on youtube watching tutorials because they are already professionals. this is why i dont bother with prepared statements on such small projects. if you want to learn prepared statements, check these videos: ruclips.net/video/gpCDo0DdqBU/видео.html ruclips.net/video/pIO0pmMTJ6Y/видео.html
Sir, in the forgot script, my variable $con cannot be read at function send_email, function save_password, and function is_code_correct. Do i need to assign new value on that $con?
You did it again , congrats for the great job of explaining your thinking process during coding while making the experience enjoyable ! one question though: i have followed your MVC model which you created in another video , so to include a PW recovery part within this model , where should i position the mail.php file and the PHPMailer_master? i put both in controller folder but i keep getting errors like "Warning: require(../controllers/PHPMailer-master/src/Exception.php): Failed to open stream: No such file or directory in C:\xampp\htdocs\Memo\app\controllers\mail.php on line 7", appreciate your feedback .
usually extra functionality should be added in the models folder. just keep in mind that all references to include files are relative to the public folder. so if i want to include a file from the models folder, it would be like this: include("../app/models/file.php"); so add your files in there and try that
@@QuickProgramming thanks for your reply , I have used : require "".__DIR__."/PHPMailer-master/src/Exception.php"; and so on for the rest of the Mailer files, my problem was that I was using : require "".ROOT."/PHPMailer-master and ROOT was path constant that did not lead to the PHPMailer file. so this use of ._DIR_. worked just fine.
code doesnt usually take up much space, so if you're not sure which code to delete on a working website, better to not delete anything or you may risk deleting useful stuff. If you wrote the code yourself, then you would know what to delete on your own. i use prepared statements in these two videos: ruclips.net/video/gpCDo0DdqBU/видео.html ruclips.net/video/pIO0pmMTJ6Y/видео.html
Good evening good sir I trying to use the on the mvc website, where the forms are in the view file and the switch statement is in the controller file but it doesn't seems switch the form when I click the next button, can you assist with this if possible
There's a little problem, everything works fine but the new password doesn't get updated in the database because of that I can only login using the old password. I rechecked the code along with the video. I didn't find any errors. Please help!
probably something wrong with the query that should make the changes. echo the query, copy it and paste it directly in phpmyadmin on the SQL tab and run it to see if it works or shows an error
@@Dihansa468 echo $query; You put that code after creating the query. You may also want to watch my beginner video on php. Search my channel for 'php beginner tutorial'. It explains most of this stuff🙂
This is the most detailed tutorial ever in RUclips. Thank you so much for your effort !
Thanks for the great video! The only issue I had was I had my 2 step verification on in my gmail account, and I was testing it with my regulat gmail password and it did not work. Once I created and used an extra app password through the 2 step verification links, it worked like a charm!! Thanks again!
I don't usually comment on videos but this one leave me with no hope it's more than good for me to keep quiet ..♥️♥️♥️🤯 immediately I just subscribed and hit bell all
Wow, thank you for the compliment and thanks for the sub as well :)
Hii password not show in database and not login to email id and password (changed password)
One thing I have noticed with your code is it is very simplified. The one thing I do not understand is why you do not use prepared statements when you are working with mysql database. It is known this is a security flaw to avoid "sql injections." Regardless if you are working with a "localhost" for those who want to use these on a LIVE server, may be put at risk. Has something changed recently that this is not practiced anymore? These should be meant as STRICTLY as tutorials and not a means of use on public servers. Correct me if I am wrong here.
yes, its always better to use prepared statements. i use them in more detailed videos on the channel, however they are not good for teaching purposes when it comes to simple code like this. its better to learn the basics first, then advance to prepared statements later if you need to. a bomb is good at destroying things, but its not always the best tool.
in my code i use "addslashes" function to escape any suspicious text in the variables. this is usually enough to block sql injection. unless you're running a bank or financial institution, this is more than enough. people who run banks and applications that need more security than that are not on youtube watching tutorials because they are already professionals. this is why i dont bother with prepared statements on such small projects.
if you want to learn prepared statements, check these videos:
ruclips.net/video/gpCDo0DdqBU/видео.html
ruclips.net/video/pIO0pmMTJ6Y/видео.html
wow very awesome i love this tuturial thanks for the video
indeed you channel is awesome.
Keep up the good work i appreciate
thanks for the feedback and you're most welcome :)
Sir, in the forgot script, my variable $con cannot be read at function send_email, function save_password, and function is_code_correct. Do i need to assign new value on that $con?
You did it again , congrats for the great job of explaining your thinking process during coding while making the experience enjoyable !
one question though: i have followed your MVC model which you created in another video , so to include a PW recovery part within this model , where should i position the mail.php file and the PHPMailer_master? i put both in controller folder but i keep getting errors like "Warning: require(../controllers/PHPMailer-master/src/Exception.php): Failed to open stream: No such file or directory in C:\xampp\htdocs\Memo\app\controllers\mail.php on line 7", appreciate your feedback .
usually extra functionality should be added in the models folder. just keep in mind that all references to include files are relative to the public folder. so if i want to include a file from the models folder, it would be like this:
include("../app/models/file.php");
so add your files in there and try that
@@QuickProgramming thanks for your reply , I have used :
require "".__DIR__."/PHPMailer-master/src/Exception.php"; and so on for the rest of the Mailer files, my problem was that I was using :
require "".ROOT."/PHPMailer-master and ROOT was path constant that did not lead to the PHPMailer file.
so this use of ._DIR_. worked just fine.
@@fal8202 oh i see. ist because ROOT has http::localhost and not the actual path. you're right to use __DIR__ its the proper way
I am getting SMTP connect() failed error. I got an e-mail once succesfully but then nothing.
Hello l have question why in search bar i still can access enter_code and enter_password my session not working can you help me
Do you have a tutorial for forgot username as well.
49:41 Hey i have a question,shouldn't you hash the token incase of a hackers or it doesn't matter?
The code not sent to my Gmail
amazing video but i did not recieve any mail when I tried it out..i got an error instead
Very good work. Thanks for share...
Thank you!
Lan aha Türk nasılsın 😅😅
How can i delete old codes as not to take up space? Also, do you have a video where you use prepared statements?
code doesnt usually take up much space, so if you're not sure which code to delete on a working website, better to not delete anything or you may risk deleting useful stuff. If you wrote the code yourself, then you would know what to delete on your own.
i use prepared statements in these two videos:
ruclips.net/video/gpCDo0DdqBU/видео.html
ruclips.net/video/pIO0pmMTJ6Y/видео.html
Good evening good sir I trying to use the on the mvc website, where the forms are in the view file and the switch statement is in the controller file but it doesn't seems switch the form when I click the next button, can you assist with this if possible
that could be caused by the GET variables not being passed properly in your URLs. also if the session isnt working properly to store data
hii are u gonna do athoer project in other langauge like java mayby?
no, only php, javascript and related technologies. i'll open another channel for python and java
PHPMailer system is not code not working, code not send to email
what error do you get?
@@QuickProgramming register or login everything ok ,but my mail box not send email
Nice ...
Thank you! Cheers!
good videoo 🤩🤩
Thank you 🤗
When login then not showing index file
did you manage to fix your issue?
No
sir code not recived in the mail need help
if you're using phpmailer, it may be the issue. use the simple mail function that comes with php but on a live server
❤❤
There's a little problem, everything works fine but the new password doesn't get updated in the database because of that I can only login using the old password. I rechecked the code along with the video. I didn't find any errors. Please help!
probably something wrong with the query that should make the changes. echo the query, copy it and paste it directly in phpmyadmin on the SQL tab and run it to see if it works or shows an error
@@QuickProgramming I don't quite understand how to echo the query. Help plz
@@Dihansa468 echo $query;
You put that code after creating the query. You may also want to watch my beginner video on php. Search my channel for 'php beginner tutorial'. It explains most of this stuff🙂
@@Dihansa468 watch this video ruclips.net/video/0CFQmcrP2dE/видео.html
Wow
Hello sir, Why didn't I get any mail? I copied your source code. It was only received in the database and not in my inbox (Gmail).
I'm new to this but can you send me the source code to this project
Did you find solution ?
Video is soo much useful but the source code file has viruses don't download this link
Lol viruses?😂 You made me laugh
❤❤