UPDATE: User registration with email verification on localhost:
In this login video, I create a users table with fields id, username, and password. Then I inserted a user whose credentials I used to log in.
*** Learn how to build a complete blog with PHP and MySQL:
– – – – – – – – – – – – – – – – – – – C O U R S E S – – – – – – – – – – – – – – – – – – –
{ B O O T C A M P S }
– – The Web Developer Bootcamp:
– – The Complete Web Developer in 2018: Zero to Mastery:
{ P H P }
– – PHP for Beginners – Become a PHP Master – CMS Project:
– – Create a REAL Social Network like Facebook in PHP + MySQL:
– – PHP with Laravel for beginners – Become a Master in Laravel:
– – PHP OOP – Understand Object Oriented Programming in PHP:
{ P Y T H O N }
– – Complete Python Bootcamp: Go from zero to hero in Python 3:
– – Complete Python Masterclass:
{ J A V A S C R I P T }
– – Modern JavaScript From The Beginning:
– – The Complete JavaScript Course 2018: Build Real Projects!:
– – Modern React with Redux:
– – MERN Stack Front To Back: Full Stack React, Redux & Node.js:
Nguồn:https://phprealestatescript.com/
Xem Thêm Bài Viết Khác:https://phprealestatescript.com/lap-trinh-php
✔✔✔💥UPDATE: Here is a better version of this video: https://youtu.be/ShbHwaiyOps
UPDATE: User registration with Email verification: https://www.youtube.com/watch?v=8K4Wt37Itc4
Fatal error: Uncaught Error: Call to undefined function mysql_real_escape_string() in C:xampphtdocsdbprocess.php:9 Stack trace: #0 {main} thrown in C:xampphtdocsdbprocess.php on line 9
Fatal error: Uncaught Error: Call to undefined function mysql_real_escape_string() in C:wamp64wwwworkingfilesjslogn.php on line 9
what to do please help……….
Do you have any tutorial for a seperate table for admin and users?
When we excute process.php
Fatal error:call to undefined function mysql_real_escape_string()
tq so much u vedio helpfull my work
Does the folder need to be saved in the exact location? I'm working on a macbook so don't have that file? And the login file is .php, should it work if it was .html?
Parse error: syntax error, unexpected '{' in C:xampphtdocsloginprocess.php on line 18 what to do?
ignoring the fact there's no audio in this tutorial, this is a great tutorial. 1 thousand people who dislike this is a spoiled brat
why can't run
To all the new viewers please dont follow this video as php commands and functions used in this video are now outdated..
Parse error: syntax error, unexpected ',', expecting ')' in C:xampphtdocsJohnmotorprocess.php on line 18
thank you
Very good code I'd love to do that too
Can u please help me to delete the database
Thanks for the video is really nice
هنا شرح بالعربي لنفس الموضوع –>https://www.youtube.com/watch?v=Q2TBkUSzG78
<?php
$x=0.58;
echo $x;
echo"<br/>";
echo $x+++$x++;
echo "<br/>";
echo $x+0.23;
echo "<br/>";
echo $x—$x–;
echo "<br/>";
echo $x-0.38;
echo "<br/>";
echo $x;
?>
List the possible outputs
You have to implement a function named stringCheck. The value of the variable input is a string BIYPR2978H. The string must have ten letters. When stringCheck is called, need to check 4th letter is P, 6 to 9 should be Number and last letter should be an alphabet. If any condition is false, you can print the error message. How would you implement this function?
The value of the variable input is a string 458,2,30,4.9,58.2,6,7.2. Write a function to get the sum of integers in the string?
sir could you please ans the Q
<?php
$ref_array();
$ref_array[1]=array(1,2);
$ref_array[2]=3;
$ref_array=array(4,5);
$output_array=array_merge($output_array,$ref_array[1]);
var_dump($output_array);
$output_array=array_merge($output_array,$ref_array[2]);
var_dump($output_array);
$output_array=array_merge($output_array,$ref_array[3]);
var_dump($output_array);
?>
List the possible outputs
sir cloud you please solve the question
Help me pls..
Fatal error: Uncaught Error: Call to undefined function mysql_real_escape_string() in C:xampphtdocsTagLifelogin.php:9 stack trace:#0{main} throw in C:xampphtdocsTagLifelogin.php on line 9
thank you so much mannnnnn you saved my life
Hello I have an error in making the variable in line 4. What should I do?
Fatal error: Uncaught Error: Call to undefined function mysql_real_escape_string()
Fatal error: Uncaught Error: Call to undefined function mysql_connect() any idea read a little online says i needed to change php or something i rather not mess with something like thought if can be avoided.
im using notepad++
Parse error: syntax error, unexpected 'mysql_error' (T_STRING), expecting ')' in C:xampphtdocswebprocess.php on line 14
Error on line 9 brother please, help me 😊
Thank you! Maybe not the prettiest but a fine working script, just use this in the end:
if(password_verify($password, $row['passWord'])) {
echo "Login Success!";
} else {
echo "Login failed.";
}
This is more up to date and more secure than your end. All code is written underneath:
——Login script
<?php
require_once 'Includes/config.php';
//password and usernamen get
$username = $_POST['inputUsername'];
$password = $_POST['inputPassword'];
// Protection against injections
$username = stripcslashes($username);
$password = stripcslashes($password);
$username = mysqli_real_escape_string($mysqli, $username);
$password = mysqli_real_escape_string($mysqli, $password);
// Query for db
$result = mysqli_query($mysqli, "SELECT passWord FROM users WHERE userName = '$username'")
or die("failed to query db " . mysql_error());
// connection to db
$row = mysqli_fetch_array($result);
if(password_verify($password, $row['passWord'])) {
echo "Login Success!";
} else {
echo "Login failed.";
}
// header("Location: home.php");
?>
——Config.php
<?php
error_reporting(E_ALL);
ini_set('display_errors' , '1');
//Inloggegevens van en naar de database
$DB_hostname = "IP-adress or localhost";
$DB_username = "Username";
$DB_password = "Password";
$DB_database = "DB_name";
// connect query
$mysqli = mysqli_connect($DB_hostname , $DB_username , $DB_password , $DB_database);
//Fault catcher
if(!$mysqli){
echo "No connection.";
}
?>
—— HTML page
<html>
<head>
<title>Login</title>
<meta charset="utf-8">
</head>
<body>
<form action="login.php" method="POST">
<label for="inputUsername">Username: </label>
<input type="text" name="inputUsername" id="inputUsername">
<label for="inputPassword">Password: </label>
<input type="password" name="inputPassword" id="inputPassword">
<input type="submit" value="Submit" name="submit">
</form>
</body>
</html>
Uncaught Error: Call to undefined function mysql_real_escape_string()
Nice… I have this for homework now. I'm gonna use this method. Thanks.
good!
Beyond WordPress theme https://visualmodo.com/theme/beyond-wordpress-theme/ gives you the ability to create any design in minutes without touching a single line of code. It is very easy to add any element and customize it as much as you desire with page builder. Add a portfolio to showcase your work, set up an online shop to sell your products, or promote your business with service boxes. Build your own responsive website! 📱💻🖥️🔌
IDK who you are. But I have to say. You are a GOD.
Parse error: syntax error, unexpected ':' in C:xampphtdocsloginprocess.php on line 17