Login System with PHP and MySQL Database with session

  Рет қаралды 137,666

Code And Course

Code And Course

Күн бұрын

In this video, we'll be creating a login system with PHP and MySQL. We'll be using a database to store our users' information, and we'll be using sessions to keep track of our logged-in users. This system can be used for websites, forums, or any other type of site that requires a login. So if you're looking to add a login system to your site, this video is for you!
Donate here: www.paypal.me/...
Source Code: bit.ly/2Z8p9Ls
If you don't know how to create HTML form then you can watch :-
How to Create Registration Form in HTML - Easy - 2017 = • From Zero to Hero: Bui...
HTML Forms - Learn 18 HTML Input Types | HTML5 = • Mastering HTML Forms: ...
How to connect HTML Form to MySQL Database using PHP in 4 Minutes = • Connect Your HTML Form...
Twitter : / codeandcoins
Google+ : goo.gl/7vjhrp
Facebook : / codeandcoins
Blog : CodeAndCoins.b...
Share this Video and Subscribe to my channel

Пікірлер: 87
@CodeAndCourse
@CodeAndCourse 4 жыл бұрын
Ask your question in our new forum forum.codeandcourse.com/viewforum.php?f=4
@infodiff
@infodiff 10 ай бұрын
Thank you. I downloaded many of your videos and watching them. Very nicely explained.
@Cameron_clan
@Cameron_clan 6 жыл бұрын
To get the first SQL statement to work I had to insert "USE company" between the create database statement and the create table statement. Love the videos, thanks much!
@atozcipriano2845
@atozcipriano2845 4 жыл бұрын
This suits my current needs. Thank you. This helps a lot.
@CodeAndCourse
@CodeAndCourse 4 жыл бұрын
Glad I could help!
@kwokashley2000
@kwokashley2000 2 жыл бұрын
Thank you so much!
@kimzamora19
@kimzamora19 6 жыл бұрын
You got yourself a new subscriber. Thanks!
@onepercentdaily8772
@onepercentdaily8772 5 жыл бұрын
can you share me the codes please? the link they've given doesn't work
@kazim.technology
@kazim.technology 4 жыл бұрын
hello dear please help if i entered wrong user name or password how it will show me that i entered wrong username or password this code not showing just if the text empty it say incorrect password please help
@garry8197
@garry8197 4 жыл бұрын
Hello sir ur too good and ur teaching is also a bestttttt and plss can you make vdo in hindi
@CodeAndCourse
@CodeAndCourse 7 жыл бұрын
Source Code: bit.ly/2Z8p9Ls
@samareshmajumder9700
@samareshmajumder9700 7 жыл бұрын
Code And Coins i can not download source code, please send me on email, samareshmajumder340@gmail.com
@akashmahesh3124
@akashmahesh3124 7 жыл бұрын
not showing
@ubelievablefootballtricks2288
@ubelievablefootballtricks2288 6 жыл бұрын
akash mahesh soutce code aint showing
@Mom_Ishaan
@Mom_Ishaan 5 жыл бұрын
i cant download the code
@davidezuppiroli2681
@davidezuppiroli2681 5 жыл бұрын
apart from not being able to download the code, but this shit does not work, even if you enter the data in the database continue tell us invalid username or password
@agnikdey1792
@agnikdey1792 7 жыл бұрын
Thank u very much yr....fr giving those source code.....which works perfectly..go forward
@CodeAndCourse
@CodeAndCourse 7 жыл бұрын
I appreciate.
@fuadnajmudin8252
@fuadnajmudin8252 5 жыл бұрын
I suggest to apply USE [databasename]; after or the other word, below to the CREATE DATABASE [databasename]; command, therefore the whole commands given can be executed to the SQL directly from the plain text. This is because we need to select after creation. Otherwise, the SQL error will appear due to no database has been selected after creation
@shaikreshma7783
@shaikreshma7783 5 жыл бұрын
thanks alot it is useful to me
@susheelkumar10792
@susheelkumar10792 6 жыл бұрын
Woo Simple super Code is working well , really helpful . thank you So much.
@jawbreaker54
@jawbreaker54 5 жыл бұрын
You deserve a sub and a like. Thanks loads Bhai
@souravghosh2000
@souravghosh2000 5 жыл бұрын
Thank You So Much Sir.
@mohitvashist7506
@mohitvashist7506 6 жыл бұрын
awesome video
@sebby138
@sebby138 5 жыл бұрын
hi sorry for the trouble but can you help me. there were these 2 errors when i press login button when input is empty Notice: Undefined variable: conn in C:\xampp\htdocs\MyProjects\login.php on line 26 Warning: mysqli_close() expects parameter 1 to be mysqli, null given in C:\xampp\htdocs\MyProjects\login.php on line 26
@subrahmanyag.t5743
@subrahmanyag.t5743 6 жыл бұрын
Really Supper
@impine7400
@impine7400 5 жыл бұрын
what application did you use in editing php sir?
@anchalsingh2424
@anchalsingh2424 6 жыл бұрын
Thank You !! Great video !
@abhiroyvlogs001
@abhiroyvlogs001 5 жыл бұрын
hii anchal aapne dekha video pura
@itech_plus
@itech_plus 5 жыл бұрын
this is wonderful
@michellelucas1829
@michellelucas1829 5 жыл бұрын
amazing
@varanasivarun1848
@varanasivarun1848 6 жыл бұрын
How the control goes into index. php page? as after submitting the data goes into login. php. pls help me out!. Thank you
@satishpadha1973
@satishpadha1973 4 жыл бұрын
Syntax is good and easy to explain but it should be in Hindi language and must be louder to heat
@truptipawar5447
@truptipawar5447 5 жыл бұрын
Hii I'm getting error like undefined variable :error in C:\xammp\htdocs\project \index.php on line 22
@رواياتمغربية-ر6ق
@رواياتمغربية-ر6ق 6 жыл бұрын
THIS IS AMAZING !
@MA-wf3uh
@MA-wf3uh 5 жыл бұрын
Wooooooo, tnx
@nasheefabegum
@nasheefabegum 4 жыл бұрын
Where to type the php coding?
@stevennyaga8711
@stevennyaga8711 6 жыл бұрын
Works well.
@komiii725
@komiii725 5 жыл бұрын
can someone help me cuz when I log in it just refreshes the page
@TheArkcantos
@TheArkcantos 5 жыл бұрын
I have same trouble too... Anyone can help?
@ilyassmalkilegend
@ilyassmalkilegend 6 жыл бұрын
your great
@hackedzach1715
@hackedzach1715 5 жыл бұрын
I get this error, Fatal error: Uncaught Error: Call to a member function bind_param() on bool in C:\xampp\htdocs\GroupCode\login.php:17 Stack trace: #0 {main} thrown in C:\xampp\htdocs\GroupCode\login.php on line 23
@RaySwank225
@RaySwank225 4 жыл бұрын
me too
@piusmujabi1804
@piusmujabi1804 7 жыл бұрын
thank you very much
@Aaminul555
@Aaminul555 6 жыл бұрын
:-):-)Thanks a lot for this True video :-) :-)
@DDOGGAMING24
@DDOGGAMING24 5 жыл бұрын
I need some help. So I have it run but when I try to logout I get errors "host.com is currently unable to handle this request.
@MCAlex9912
@MCAlex9912 7 жыл бұрын
india tech support ?
@CodeAndCourse
@CodeAndCourse 7 жыл бұрын
I am from Nepal
@jordydewaele199
@jordydewaele199 6 жыл бұрын
It keeps saying ' Username or Password is invalid' and I copied the codes from the file. What am I doing wrong? Should first create an username and password in phpMyAdmin?
@CodeAndCourse
@CodeAndCourse 6 жыл бұрын
Paste your code here
@jordydewaele199
@jordydewaele199 6 жыл бұрын
@@CodeAndCourse
@CodeAndCourse
@CodeAndCourse 6 жыл бұрын
Yha, firt you need to create username and password in phpMyAdmin
@CodeAndCourse
@CodeAndCourse 6 жыл бұрын
Or you can also watch my new video on login and registration form
@jordydewaele199
@jordydewaele199 6 жыл бұрын
@@CodeAndCourse Thanks, now i get the following error: Fatal error: Uncaught Error: Call to a member function bind_param() on bool in C:\xampp\htdocs\tutorial\login.php:25 Stack trace: #0 C:\xampp\htdocs\tutorial\index.php(2): include() #1 {main} thrown in C:\xampp\htdocs\tutorial\login.php on line 25
@kofitesla1566
@kofitesla1566 6 жыл бұрын
Can someone please help me understand line 23 on login.php page. especially where "ss" came from.
@CodeAndCourse
@CodeAndCourse 6 жыл бұрын
that define what type of data you are sending to the database. If you are sending string data then you have to use 's', if you are sending integer data then you have to use 'i'. And this is the format which we use in the prepared statement
@mohitvashist7506
@mohitvashist7506 6 жыл бұрын
bro how i link my html page to php
@peresto112
@peresto112 6 жыл бұрын
i'm tring but still i can't log in how can I add new user
@CodeAndCourse
@CodeAndCourse 6 жыл бұрын
you can add new user in database
@peresto112
@peresto112 6 жыл бұрын
ok thx
@mohitvashist7506
@mohitvashist7506 6 жыл бұрын
how
@madhawagamage1036
@madhawagamage1036 5 жыл бұрын
@@mohitvashist7506 insert a new row to th table in a databae
@mohitvashist7506
@mohitvashist7506 5 жыл бұрын
@@madhawagamage1036 ok
@ejizenrealsen7333
@ejizenrealsen7333 5 жыл бұрын
Thanks for the code I am looking for the code
@mohitvashist7506
@mohitvashist7506 6 жыл бұрын
now please make another video for read and write data by user
@itsdiogoluis
@itsdiogoluis 6 жыл бұрын
can someone help me on this (Parse error: syntax error, unexpected 'else' (T_ELSE) in D:\xampp\htdocs\login\login.ph) ?
@ravissh
@ravissh 4 жыл бұрын
which line>?
@rinibpradhananga9898
@rinibpradhananga9898 5 жыл бұрын
when I followed the steps I get get error when I type in wrong username and password Notice: Undefined variable: conn in C:\xampp\htdocs\login\login.php on line 26 Warning: mysqli_close() expects parameter 1 to be mysqli, null given in C:\xampp\htdocs\login\login.php on line 26 please help me fix this Show less
@RaySwank225
@RaySwank225 4 жыл бұрын
me too
@markjasonquimson3589
@markjasonquimson3589 5 жыл бұрын
Hi sir . I'm getting this error. Notice: Undefined variable: conn in C:\xampp\htdocs\login.php on line 26 Warning: mysqli_close() expects parameter 1 to be mysqli, null given in C:\xampp\htdocs\login.php on line 26 how can i solve this??
@MisterFl4sh
@MisterFl4sh 5 жыл бұрын
Just write the line where the error comes from
@whiteboardtrader
@whiteboardtrader 3 жыл бұрын
password type?
@christianvaiana8768
@christianvaiana8768 5 жыл бұрын
HTTP ERROR 500 when i press logout
@MrPerensap
@MrPerensap 5 жыл бұрын
Need more info, 500 is a backend error. Look into your php. Also open de console xhr to see the error message.
@sumanmishra3306
@sumanmishra3306 5 жыл бұрын
what is the password ?
@muhtasimmahin5057
@muhtasimmahin5057 5 жыл бұрын
what is the password
@Comedy-wk9zb
@Comedy-wk9zb 7 жыл бұрын
use okurl.in for shorting links
@GAMINGDEADCRACKER
@GAMINGDEADCRACKER 5 жыл бұрын
Your sound is very disturbing.. video is good but try to improve Ur voice
@ervinsebastian3846
@ervinsebastian3846 6 жыл бұрын
Fatal error: Uncaught Error: Call to a member function bind_param() on boolean in C:\xampp\htdocs ew\login.php:25 Stack trace: #0 C:\xampp\htdocs ew\index.php(2): include() #1 {main} thrown in C:\xampp\htdocs ew\login.php on line 25
Login Page With Authentication Using PHP & MYSQL
14:44
Dear Programmer
Рет қаралды 98 М.
Правильный подход к детям
00:18
Beatrise
Рет қаралды 11 МЛН
Cheerleader Transformation That Left Everyone Speechless! #shorts
00:27
Fabiosa Best Lifehacks
Рет қаралды 16 МЛН
How Strong Is Tape?
00:24
Stokes Twins
Рет қаралды 96 МЛН
人是不能做到吗?#火影忍者 #家人  #佐助
00:20
火影忍者一家
Рет қаралды 20 МЛН
Login & Logout in PHP With Session and MySQL
9:21
Rein
Рет қаралды 87 М.
How to Connect HTML Form with MySQL Database using PHP
7:09
Technical Babaji (Tarique Akhtar)
Рет қаралды 2,6 МЛН
Database Lesson #1 of 8 - Introduction to Databases
38:43
Dr. Daniel Soper
Рет қаралды 1,2 МЛН
Learn HTML forms in 10+ minutes! 📝
17:55
Bro Code
Рет қаралды 136 М.
Laravel Tutorial For Beginners (Simple User CRUD App)
1:16:13
LearnWebCode
Рет қаралды 224 М.
Store HTML Form Data to MySQL Database
6:49
Code And Course
Рет қаралды 1,8 МЛН
Правильный подход к детям
00:18
Beatrise
Рет қаралды 11 МЛН