Download Source Code http://www.onlineittuts.com/how-to-create-login-form-in-php.html Today We Will Learn How to Make Login Form in PHP and MySQL.
Original source
Download Source Code http://www.onlineittuts.com/how-to-create-login-form-in-php.html Today We Will Learn How to Make Login Form in PHP and MySQL.
Original source
45 responses to “How to Make Login Form in PHP and MySQL”
vulnerable sql injection but nice video
Very nice but it would be much more nice if you also include the css section.
hi sir , how to open another from in php ?
This works for those who use PHP 7.2.14
<?php
$host="localhost";
$user="root";
$password="";
$db="demo";
$a=mysqli_connect('localhost','root','','demo');
mysqli_select_db($a,$db);
if(isset($_POST['username'])){
$uname=$_POST['username'];
$password=$_POST['password'];
$sql="select * from loginform where User='".$uname."'AND Pass='".$password."' limit 1";
$result=mysqli_query($a, $sql);
if(mysqli_num_rows($result)!==0){
echo " You Have Successfully Logged in";
exit();
}
else{
echo " You Have Entered Incorrect Password";
exit();
}}
?>
Thanks For sharing Sir
what code you use on images
How to fix this error ( ! ) Parse error: syntax error, unexpected '$result' (T_VARIABLE) in /storage/emulated/0/www/bshr/index.php on line 15
Leaving an error for that line where we write the main query
thank you so much <3 <3 great video and great explaining
Hello sir.. Really nice work… Sir basically i want to know the code of css style sheet which u have used in ur programm. Can u pls help me out as soon as possible? 😊
azeri&turk
emrah yuksel in videosunda anlamadim
RIP English
mysql curry
10:54 "See ERROR 'Bitch!' " XDDD.
How to open the php file? I tried to open it with xampp. But this error message appeared:
Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in C:xampphtdocsscriptslogin.php on line 20
You Have Entered Incorrect Password . This happens whether I put in a correct or a wron password. Thanks for help.
empaty haha. but excellent video
Can you make php admin panel app?
i copy all your source code posted on the link but i have an error icon is not display. solution plz.
login pag ban ha call me 0308 6643454
I've done everything and got the following error :
Fatal error: Uncaught Error: Call to undefined function mysql_connect() in C:wamp64wwwAuthAuth.php on line 10
Anyone that can help?
This is nothing just the header.php SEE BELOW FOR THE =========== LINE TO START thanks.
<!DOCTYPE html>
<html lang="en">
<head>
<title>Z-Shopping Using PHP/MySQL</title>
<link href="css/bootstrap.css" rel="stylesheet" type="text/css" media="screen">
<link rel="stylesheet" type="text/css" href="css/DT_bootstrap.css">
<link href="modal/css1/bootstrap1.css" rel="stylesheet" type="text/css" media="screen">
</head>
<script src="modal/js1/jquery1.js" type="text/javascript"></script>
<script src="modal/js1/bootstrap1.js" type="text/javascript"></script>
<script src="js/jquery.js" type="text/javascript"></script>
<script src="js/bootstrap.js" type="text/javascript"></script>
<script type="text/javascript" charset="utf-8" language="javascript" src="js/jquery.dataTables.js"></script>
<script type="text/javascript" charset="utf-8" language="javascript" src="js/DT_bootstrap.js"></script>
==================================================================
this is the problem. see the *** below echo $row['fname']; prints out Chicken Breast All Natural Boneless Skinles
but in the form <?php echo $row['fname']; ?>> see //////// below
and this is a edit.php form it shows <input type="text" name="fname" required value=<?php echo $row['fname']; ?>>
because the form is filled from the database and then you edit it. the problem is when the form is filled it only display Cheicken and not like the echo above.
ANY HELP WOULD BE APPREXCIATED
<?php
include('dbconn.php');
include ('header.php');
$id=$_GET['id'];
?>
<body>
<div class="container">
<div class="hero-unit-header">
<!– end banner & menunav –>
<center>
<?php
$query=mysqli_query($conn,"select * from products where id='$id'")or die(mysqli_error());
$row=mysqli_fetch_assoc($query);
echo $row['fname']; *************************************
?>
<form method="POST">
<hr>
<h4>Product Information</h4>
<hr>
<div class="control-group">
<label class="control-label" for="inputPassword">Product</label>
<div class="control-label">
<input type="text" name="fname" required value=<?php echo $row['fname']; ?>> ///////////////
</div>
</div>
I guess you are using brackets to compile the codes but your's bracket is highlighting the codes where mine is not doing the same. Also, I have copied and pasted your code including CSS but there is a message saying error in line 8.
Fatal error: Uncaught Error: Call to undefined function mysql_connect() in C:xampphtdocsHTMLindex.php:8 Stack trace: #0 {main} thrown in C:xampphtdocsHTMLindex.php on line 8
help pls
Fatal error: Uncaught Error: Call to undefined function mysql_connect() in C:xampphtdocsCanitanlogin.php:9 Stack trace: #0 {main} thrown in C:xampphtdocsCanitanlogin.php on line 9
Help pleaseeeeeeeeeeeee
tenks
Please help me for create an feild service app
I'm getting error when i connect my database
Masha Allah Asif Bhai nice video
minta scriptnya bang eheheh
Thanks bro because this video was helpfull for us , so again i want to say thanks
copied and pasted the code but it doesn't do anything on mine. I can only input the username and password. Then it does not do anything after I click Login.
What are the software that you uses in making this?
Thank You So much This Lesson Is Very Useful 👍
whats wrong in this line ?
Fatal error: Cannot use isset() on the result of an expression (you can use "null !== expression" instead) in C:xampphtdocsIMSfunction.php on line 11
mysql_connect($host,$user,$pass);
mysql_select_db($db);
if (isset(['username'])){ <<line 11
$username = $_POST['username'];
$password = $_POST['password'];
$sql="slect * from user where uname='".username."' AND pswd='".password."' limit 1";
$result= mysql_query($sql);
if (mysql_num_rows($result)==1){
echo"sucessfully logged in";
exit();
}
I tried but Not working.After login, record is not showing in database.
Erro fatal : Erro não detectado: Chame a função indefinida mysql_connect () em C: xampp htdocs login1 login.php: 8 Rastreio de pilha: # 0 {main} lançado em C: xampp htdocs login1 login.php na linha 8
no session? or cookies?
Warning: mysqli_select_db() expects exactly 2 parameters, 1 given in C:xampphtdocsphplogin.php on line 9
Why not use Visual Code? It kinda looks better for me
NOW, I GOT IT !
THANKS FROM BRAZIL.
what about the session?…
Hello sir. I have copy paste your php code and change it according to my db. After i input the email and password on login form why the page does not appear "You have successfully…." and "You have entered incorrect…."? I use notepad++
what about font-awesome.min.css this page.