Follow me on Twitter @ http://twitter.com/tktutorials Check out my website @ http://www.timkipptutorials.com In this tutorial we will be building a very simple login …
Original source
Follow me on Twitter @ http://twitter.com/tktutorials Check out my website @ http://www.timkipptutorials.com In this tutorial we will be building a very simple login …
Original source
24 responses to “PHP Programming Tutorial – Creating A Simple MySQL Login Form”
really useful and clear! you saved my ass, cheers mate!!!
PHP & MySQL with MVC Frameworks – Self-Paced
https://twitter.com/WikiOffer/status/820088361062801408
code to check if user is already in the database?
name of the text editor ?
thank you so much..
ALLAH bless you !..
please help me to correct this error
Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in E:xampphtdocsproject 1login.php on line 16
inValid information…
Great! I've been pulling my hair out trying to find the most basic connection possible with least amount of files etc. almost had to go to second page! ๐
QUESTION!!! Can i just make another php file where i put the php connect_db codes then include it to other files?
Do you know how I can fix this error.. "The requested URL /Assignment 1/login.php was not found on this server." When I typed in the username and password on the login form. Thanks in advance
jesus dude, get healthy then make a tutorial……….
i get this error does somebody know what i do wrong?
Fatal error: Uncaught Error: Call to undefined function mysql_connect() in C:xampphtdocslogin.php:11 Stack trace: #0 {main} thrown in C:xampphtdocslogin.php on line 11
very good teacher can make video php login to admin
Thank You Very Much !! ๐
Great tutorial but, it's vulnerable tu a sqli?
Hi Tim, Love your tutorial, but your official website is NOT user friendly. I can NOT find the "CODE BANK" section anywhere ?
it says that the access is denied
after i login
Really great tutorial ,clear cut and to the point . Great Job !
Excellent Tut man! I was stuck with the connection to my DB but this has cleared it up! Keep the vids coming ๐
If password and username are correct how i can go to next page
Is this way secure tho?
registration form video?
really helpful
thanks you so much, love you
hi Tim,
iam getting the following error, the query is getting executed in phpmyadmin..
Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in D:xampphtdocsbbox_orderlogin.php on line 12
here is my code
<?php
require_once 'config.php';
if(isset($_POST['submit']))
{
$username = $_POST['username'];
$password= $_POST['password'];
$sql = "SELECT user,password FROM user WHERE user='".$username."'AND password='".$password."' LIMIT 1";
$res = mysql_query($sql);
;
echo "$count";
if(mysql_num_rows($res) == 1)
{
echo "login successful";
//index.php;
exit();
}else
{
echo "please enter correct login";
exit();
}
}
?>
<html>
<title>Login</title>
<body>
<form method="POST" action="login.php">
Username :<input type="text" name="username"><br/><br/>
Password :<input type="text" name="password"><br/><br/>
<input type="submit" name="submit" value="login">
</form>
</body>
</html>