Login user PHP with MySQL 2

  Рет қаралды 89,197

Awa Melvine

Awa Melvine

Күн бұрын

Пікірлер
@AwaMelvine
@AwaMelvine 6 жыл бұрын
✔✔✔💥UPDATE: Here is a better version of this video: kzbin.info/www/bejne/iZnFeaqXnt6CptU
@rohanrao3107
@rohanrao3107 8 жыл бұрын
When I am running the login.php file, it says object not found. I have written exactly the same mentioned in the video, but still?? What could be the reason?
@chapalbarua1521
@chapalbarua1521 7 жыл бұрын
use mysqli_real_escape_string instead of mysql_real_escape_string. You have to send session identifier while using mysqli. Check the format of mysqli for clarification.
@swiftglitxh2823
@swiftglitxh2823 6 жыл бұрын
Can't log in? I have repeated this video over 20 times and checked everything I can register the users , that goes to the profile but can't log In
@naimperves9589
@naimperves9589 6 жыл бұрын
Do you have the code, mai me: naimperves78@gmail.com
@yatehhh
@yatehhh 6 жыл бұрын
yeah bro i got same problem cant logged in
@jinatyalmaz2510
@jinatyalmaz2510 4 жыл бұрын
@@yatehhh me too
@ludean5836
@ludean5836 4 жыл бұрын
@@jinatyalmaz2510 me too
@marufkabir3412
@marufkabir3412 8 жыл бұрын
Hello there sir, I'm having some kind of error! After pressing submit in register form or login in login form it shows me nothing, just the register or the login form itself reappears, not the home page. it also doesnt save any data in the database.. :( can you please help me out??
@zackpandey9053
@zackpandey9053 7 жыл бұрын
same problem with me
@mefendjachinedu167
@mefendjachinedu167 7 жыл бұрын
kindly correct the action command on your form set it to home page i.e
@ppkkketil5516
@ppkkketil5516 6 жыл бұрын
i have the same problem, can i know how you solve it?
@mutasim900
@mutasim900 7 жыл бұрын
Hello Can you Connect your database with mysqli query anf functioning other php pages processess with mysql??
@hadeelsalih1639
@hadeelsalih1639 4 жыл бұрын
I have Fatal error: Uncaught Error: Call to undefined function section_start() !!! Why?
@hamiltoncs2775
@hamiltoncs2775 5 жыл бұрын
If i write a password that isnt registred already and a random username i can still log in? So my point is that you dont have to register an account for you to log in. Please 'Reply' to this if you have a solution (: Kind Regards
@riteshsuvarna8345
@riteshsuvarna8345 7 жыл бұрын
even after reffering the exact code from github.com/AwaMel/User-registration.git ...... every time i login it say incorrect username/password (PLS HELP)
@riteshsuvarna8345
@riteshsuvarna8345 7 жыл бұрын
form { border: 2px solid #f1f1f1; } input[type=text], input[type=password] { width: 40%; padding: 8px 10px; margin: 8px 0; display: inline-block; } button { background-color: purple; color: white; padding: 14px 20px; margin: 8px 0; border: none; cursor: pointer; width: 10%; } button:hover { opacity: 0.8; } .imgcontainer { text-align: left; margin: 24px 0 12px 0; } img.avatar { width: 10%; border-radius:10%; } .container { padding: 6px; } span.psw { float: right; padding-top: 16px; } /* Change styles for span and cancel button on extra small screens */ @media screen and (max-width: 300px) { span.psw { display: block; float: none; } } Login Form Username Password Login For new user Sign Up here....
@lowellamercurio5370
@lowellamercurio5370 7 жыл бұрын
Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\system\login.php on line 15 help :(
@riteshsuvarna8345
@riteshsuvarna8345 7 жыл бұрын
its mysqli_num_rows()
@raznorun
@raznorun 6 жыл бұрын
anyone can solve this?
@brunoferreira5649
@brunoferreira5649 4 жыл бұрын
if(!$result || mysqli_num_rows($result) ==1)
@franky_fg8430
@franky_fg8430 8 жыл бұрын
What is the mysqli_num_rows($result) == 1, as it is not working for me?
@franky_fg8430
@franky_fg8430 8 жыл бұрын
*What is it for?
@kumaresha3348
@kumaresha3348 6 жыл бұрын
Franky_fg this is to check whether there is username exist or not. If there exist, then login will be successful. 0 means not exist. 1 means exist.
@raznorun
@raznorun 6 жыл бұрын
how to recorrect it man, im facing the same prob here, pls help... thanks in advance
@syeddaniyalahmed4892
@syeddaniyalahmed4892 7 жыл бұрын
i don't know but $_SESSION['message'] is not working on my registration or login kindly guide me what i am doing wrong...
@WTFMoment88
@WTFMoment88 5 жыл бұрын
pls help Fatal error: Uncaught Error: Call to undefined function mysql_real_escape_string() in C:\xampp\htdocs\msgr\login.php:7 Stack trace: #0 {main} thrown in C:\xampp\htdocs\msgr\login.php on line 7
@sypheit5485
@sypheit5485 4 жыл бұрын
change to mysqli_real_escape_string()
@jinatyalmaz2510
@jinatyalmaz2510 4 жыл бұрын
Can't log in all users only ones if I put admin and password boom! Nothing
@mukeshpathak7302
@mukeshpathak7302 7 жыл бұрын
Notice: A session had already been started - ignoring session_start() in C:\xampp\htdocs\phpform1 egister.php on line 7 Fatal error: Call to undefined function nd5() in C:\xampp\htdocs\phpform1 egister.php on line 16 How to solve this error? used exact same code as in video 1. Not working, Pls help.
@karlbredenberg457
@karlbredenberg457 7 жыл бұрын
Remove session_start(); from the if statement and the error is typo where you have typed nd5 istead of md5
@swiftglitxh2823
@swiftglitxh2823 6 жыл бұрын
Can't log in all users only ones that are for e.g (username = a and password = a) but if I put admin and password boom! Nothing
@jinatyalmaz2510
@jinatyalmaz2510 4 жыл бұрын
me too if u find the solution please tell me
@kishangoswami9569
@kishangoswami9569 6 жыл бұрын
if u use $session variable than it doesn't redirect u to the home.php use echo or header
@papedavscilung9038
@papedavscilung9038 4 жыл бұрын
What happen with if (mysqli_num_rows($result) ==1) ??? I've tried >0 , != 1 , ==0 , TRUE, FALSE, WHAT SHOULD I DO??? 😴
@brunoferreira5649
@brunoferreira5649 4 жыл бұрын
if(!$result || mysqli_num_rows($result) ==1)
@JobertRozano
@JobertRozano 8 жыл бұрын
pls healp me if (mysqli_num_rows($result) == 1) is not work it says... Parse error: syntax error, unexpected 'if' (T_IF)
@asjadbaig123
@asjadbaig123 7 жыл бұрын
instead of that just write if($result) it will work
@riteshsuvarna8345
@riteshsuvarna8345 7 жыл бұрын
but then it will even work if username or password is wrong
@asjadbaig123
@asjadbaig123 7 жыл бұрын
+Ritesh Suvarna ya that problem can be solved by omitting md5 and add $check =mysqli_fetch_array($result); if(isset($check)){ }
@riteshsuvarna8345
@riteshsuvarna8345 7 жыл бұрын
instructions are not clear please explain clearly
@michelscheufler9251
@michelscheufler9251 7 жыл бұрын
works nice thanks, hope you'll will go one and do more stuff like this
@thiangteachinzah
@thiangteachinzah 5 жыл бұрын
Parse error: syntax error, unexpected '$sql' (T_VARIABLE) in C:\xampp\htdocs\test1\login.php on line 13 Can anyone please help me with this error...
@unlimitedsystem6525
@unlimitedsystem6525 5 жыл бұрын
@flybeattv1488
@flybeattv1488 4 жыл бұрын
else is not working on register and login.
@flybeattv1488
@flybeattv1488 4 жыл бұрын
else is not working if I enter wrong password
@chowdhurymobarrathaider9052
@chowdhurymobarrathaider9052 5 жыл бұрын
It shows error in the line of if(mysqli_num_rows($result) ==1) but i tried this if function if(mysqli_num_rows($result)>0) now its working !!! i comment out //$password = md5($password); now it workes absolutely fine
@prasanthkumar9993
@prasanthkumar9993 4 жыл бұрын
why md5() not working in login? plz explain sir!...
@ryansgnx
@ryansgnx 8 жыл бұрын
Hi I really enjoy watching your videos. very helpful to me. Just wondering if you could make a video on how to inquire the bcrypt function. Thank you so much
@AwaMelvine
@AwaMelvine 8 жыл бұрын
Thank you so much for the encouragement. I'm glad you find them helpful. I will improve on future videos as you suggest. Nice day :D
@techliv9806
@techliv9806 5 жыл бұрын
How to add role in blog website
@zalanborsos8566
@zalanborsos8566 7 жыл бұрын
Somebody can help me? Notice: Undefined index: username in C:\xampp\htdocs\login\login.php on line 7
@unknow393
@unknow393 6 жыл бұрын
The same problem correct the syntax check for variables $ ; and =
@kumaresha3348
@kumaresha3348 6 жыл бұрын
Think u are missing $ symbol under username.
@schokobeast-informatik7776
@schokobeast-informatik7776 8 жыл бұрын
This is my Login . He has a conection to mysql database, but when i login wiht my password and username say it that my youser name or password wrong ist and my regitry is working. Please help me .
@AwaMelvine
@AwaMelvine 8 жыл бұрын
Hi, I may not be able to help you with with that code because it's display on KZbin is not well formatted and i find it time consuming to go through. Here is the code for the full user registration, login and logout on github: github.com/AwaMel/User-registration.git. It might help you. Thanks for watching!
@schokobeast-informatik7776
@schokobeast-informatik7776 8 жыл бұрын
Thank you
@MrAhmedUA
@MrAhmedUA 8 жыл бұрын
@eltonbiavati
@eltonbiavati 7 жыл бұрын
Username and Password combination incorrect anyone can help?
@fitrisiswanto6132
@fitrisiswanto6132 7 жыл бұрын
Notice: Undefined variable: _SESSION in C:\xampp\htdocs\home.php on line 12, how to fix it,,? thanks,,
@eliaswambugu6719
@eliaswambugu6719 6 жыл бұрын
It's Supposed To Be "$_SESSION" not "_SESSION"
@rushon4610
@rushon4610 7 жыл бұрын
Thank you.
@ahmadadil7713
@ahmadadil7713 8 жыл бұрын
thanks alot
@allankafushashankar1167
@allankafushashankar1167 4 жыл бұрын
The video is poorly shot the codes can not be viewed clearly
@topcha222
@topcha222 8 жыл бұрын
dzia ginacvale me shen
@dogemaester
@dogemaester 7 жыл бұрын
you're cute
Logout user   PHP and MySQL 3
4:54
Awa Melvine
Рет қаралды 60 М.
How I'd learn ML in 2025 (if I could start over)
16:24
Boris Meinardus
Рет қаралды 3,9 М.
УЛИЧНЫЕ МУЗЫКАНТЫ В СОЧИ 🤘🏻
0:33
РОК ЗАВОД
Рет қаралды 7 МЛН
Every team from the Bracket Buster! Who ya got? 😏
0:53
FailArmy Shorts
Рет қаралды 13 МЛН
Complete User Registration system using PHP and MySQL database
32:01
What is NPM, and why do we need it? | Tutorial for beginners
14:27
Coder Coder
Рет қаралды 335 М.
User registration PHP and MySQL 1
15:43
Awa Melvine
Рет қаралды 652 М.
How to Secure Your PHP Forms
28:09
John Morris
Рет қаралды 33 М.
Check if username already taken during registration PHP
21:24
Awa Melvine
Рет қаралды 26 М.
Maven Tutorial - Crash Course
26:08
Marco Codes
Рет қаралды 190 М.
Database Roadmap 2024 | الدليل الشامل لقواعد البيانات
19:52
Form validation with JavaScript (on user registration form)
21:59
Awa Melvine
Рет қаралды 431 М.
Login system using PHP with MYSQL database
18:30
Awa Melvine
Рет қаралды 6 МЛН
УЛИЧНЫЕ МУЗЫКАНТЫ В СОЧИ 🤘🏻
0:33
РОК ЗАВОД
Рет қаралды 7 МЛН