Тёмный

PHP Login Script using PDO with Session 

Webslesson
Подписаться 96 тыс.
Просмотров 44 тыс.
50% 1

PDO Login Script in PHP. In this video you can find how to make PHP login script using PDO(PHP Data Object). How to Create Login Page in PHP/MySQL using PDO Query. PHP Login System with PDO Connection. Login Script with PDO. Simple PHP Login system using PDO. Source Code - www.webslesson.info/2016/06/ph...

Опубликовано:

 

19 июн 2016

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 57   
@blzz42
@blzz42 3 года назад
When creating a PHP login System Don’t forget to: 1. Filter, Validate, and sanitize the user input before sending anything to the database. 2. Never store password information as plain text in the database, instead, use the php built in hashing functions to hash and validate password data. 3. Do not use the HTTP ‘GET’ method in form submissions because it is insecure.., instead, Use the POST method for submitting login/signup forms.
@KyandiiChanDesu
@KyandiiChanDesu 6 лет назад
This helped me SO MUCH. Can't thank-you enough for such a great tutorial !
@tiiagocorreiia
@tiiagocorreiia 5 лет назад
Thank you so much man for make this vídeo 2 years ago. You save my life today. *--*
@supundulangamaths8417
@supundulangamaths8417 7 лет назад
hats off sir.. u are the greatest person in IT feild becuase i tried lot of tutorials abaout php and mysql.. all are getting some errors. bt ur methods are the best. no error occurs.. wow..
@lujo2w
@lujo2w 8 лет назад
I'm Brazilian Guy, and this tutorial was very helpful
@hemanthraaj942
@hemanthraaj942 3 года назад
Thank you so much for this tutorial . From India
@karldtrumpeter
@karldtrumpeter 5 лет назад
You are wonderful sir. Just what I needed. I'm grateful
@ytalolopes1843
@ytalolopes1843 7 лет назад
Obrigadão Webslesson. Muito boa sua aula. Deu certo
@gallbotondcalisthenicsGBC
@gallbotondcalisthenicsGBC 6 лет назад
This video is perfect. Short and meaningful.
@easynow6599
@easynow6599 3 года назад
very nice tutorial! just a note here: according to official php website, rowCount is not so good choice if your query is SELECT, i worked on an alternative (i dont know if its better or not, but it works): after execute, i do $result = $statement->fetchAll(); if(empty($result)) { echo ("wrong user"); } etc
@eelnation
@eelnation 7 лет назад
thanks a lot man, most understandable PDO login script, basic and simple straight forward !!!
@webslesson
@webslesson 7 лет назад
Thanks Collins..
@CC-lu6sz
@CC-lu6sz 3 года назад
Nice explaination! Thank you
@muhammadsohaib930
@muhammadsohaib930 7 лет назад
very helpful ...thank you
@calogeropanepinto2377
@calogeropanepinto2377 6 лет назад
thanks you very much for this video it s simple and it work thanks
@everman300
@everman300 8 лет назад
Thank you so much for your tutorial the best one so far.... :D
@webslesson
@webslesson 8 лет назад
Thanks
6 лет назад
Good Job Thank You :)
@johnmartin2341
@johnmartin2341 8 лет назад
Nice tutorial on login script with PDO. Thanks for sharing.
@webslesson
@webslesson 8 лет назад
Thanks
@berkay478
@berkay478 5 лет назад
THANKS! The only tutorial out of about 15 thats working for me! Thank you very much!
@jawbreaker54
@jawbreaker54 5 лет назад
I do not understand the part where u use rowCount( )... And why u use it...Please help
@berkay478
@berkay478 5 лет назад
@@jawbreaker54 the function returns the number of rows.
@jawbreaker54
@jawbreaker54 5 лет назад
@@berkay478 How can we these rows determine if the correct user has been allowed to login?
@berkay478
@berkay478 5 лет назад
​@@jawbreaker54 i dont understand the question man
@jawbreaker54
@jawbreaker54 5 лет назад
@@berkay478 i want to know how this code makes sure that both the username and password exists in the database.... As the username and password might be found in only one row
@sloutbound
@sloutbound 4 года назад
thank you !
@davepalacain7245
@davepalacain7245 6 лет назад
thank you for posting this tutorial
@webslesson
@webslesson 6 лет назад
Dear Dave Palacain, you are most welcome. Stay connected with us.
@MARKRGAMER
@MARKRGAMER 7 лет назад
Soo good job :))
@webslesson
@webslesson 7 лет назад
Thanks Mark...
@htenzdevelopment3573
@htenzdevelopment3573 6 лет назад
hi i got this error when hit log out.. Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at C:\xampplite\htdocs\Testing\logout.php:1) in C:\xampplite\htdocs\Testing\logout.php on line 3 Warning: Cannot modify header information - headers already sent by (output started at C:\xampplite\htdocs\Testing\logout.php:1) in C:\xampplite\htdocs\Testing\logout.php on line 5 any solution?
@iShah300
@iShah300 8 лет назад
Hello Sir , Can you provide a tutorial on how to show online users on front end who are logged in to your application ... please
@siddharthasharma2240
@siddharthasharma2240 6 лет назад
Hello, weblesson admin, please solve this problem---> PHP Login Script using PDO with Session connection success! SQLSTATE[3D000]: Invalid catalog name: 1046 No database selected what should i do in this scenario , I am new in PHP using by 3 days.
@totikes
@totikes 6 лет назад
But, how to avoid sql injection. any suggestions???
@anavaratha7020
@anavaratha7020 4 года назад
Ty so much. I'm a beginner, please help me .
@danisupriyadi_lampung
@danisupriyadi_lampung 4 года назад
i can't print table for each usser PDO, please make tutorial, thanks. Peace n love from Indonesia
@keilytail5820
@keilytail5820 6 лет назад
i did eveything that you did in the video but i think i missed something because when i submit it returns "SQLSTATE[HY093]: Invalid parameter number: number of bound variables does not match number of tokens " but i checked and it does match so please could you help me with this?
@chijiokemaxwell1882
@chijiokemaxwell1882 5 лет назад
this would sort that array('username' => $username, 'password' => $password )
@haziqibrahim6375
@haziqibrahim6375 7 лет назад
My error message didn't display. Please help me.
@mancobasanele4520
@mancobasanele4520 3 года назад
Good day, i have a slight problem session is not destroyed, after login once i can access login_successfull page without login, yet i did logout
@mancobasanele4520
@mancobasanele4520 3 года назад
Thanks u found the error, much appreciated
@theazrecords4285
@theazrecords4285 7 лет назад
security tip : You must use exit or die(); at the end of header location in login_success.php page.
@webslesson
@webslesson 7 лет назад
Thanks Daniyal...
@jawbreaker54
@jawbreaker54 5 лет назад
I do not understand the part where u use rowCount( )... And why u use it...Please help
@iikawache
@iikawache 7 лет назад
I am getting SQLSTATE[HY000] [1044] Access denied for user ''@'localhost' to database 'testing' error. How can I fix this?
@autopilot6942
@autopilot6942 7 лет назад
check your database connection, it could be dbname or host..
@alejandroolaria
@alejandroolaria 7 лет назад
I did everything that you did in the video but I'm not really sure if miss any step.. when I submit the form it returns a empty screen.. could u help me with this?
@webslesson
@webslesson 7 лет назад
Hi Alejandro, have seen source code of this video, please follow source code you can find any solution, and then after also you have face error, please share your code here we will see what is the problem in it.
@zpardesi8524
@zpardesi8524 7 лет назад
Could you please let me know if this is the safe code to prevent from SQL Injection???
@webslesson
@webslesson 6 лет назад
Hi Zohra Pardesi, If you have use PHP PDO, then PHP PDO is Sql Injection free, this is safe code to prevent from SQL Injection. You can also search on internet regarding this topic also.
@zpardesi8524
@zpardesi8524 6 лет назад
Hi, Nop I haven't used it, I am new to this exciting and amazing world, I am trying to learn and develop my first dynamic website with xampp, I learn from different web based tutorials, and I read somewhere that mysql will be deprecated and is replaced with mysqli. i also read that it is vulnerable to SQL injection, that was all crossed over head, Aahhh!!! I wish to be able to create something I proud, but having lots of difficulties :(
@ibrahimnour9823
@ibrahimnour9823 2 года назад
3anif !!
Далее
PHP Jquery Ajax : Insert Radio Button value on click
9:13
PHP Ajax Display Dynamic MySQL Data in Bootstrap Modal
16:07
ЛУЧШАЯ ПОКУПКА ЗА 180 000 РУБЛЕЙ
28:28
PDO Crash Course (PHP)
45:35
Просмотров 276 тыс.
PHP Login  using PDO with Session
9:12
Просмотров 29 тыс.
PHP Login Script with Remember me Login Details
7:20
PHP Upload & Remove using Ajax Jquery
16:52
Просмотров 29 тыс.