source code is here — http://justclack.blogspot.com/2016/11/php-pdo-tutorials-php-registration-and.html PHP PDO Tutorials PHP Registration and Login form …
Original source
source code is here — http://justclack.blogspot.com/2016/11/php-pdo-tutorials-php-registration-and.html PHP PDO Tutorials PHP Registration and Login form …
Original source
22 responses to “PHP PDO Tutorials PHP Registration and Login form Using database PART 1 2017”
Databaase me data show nahi ho raha
This is brilliant but unfortunately I get an error on my insert statement
$insert = $con->prepare ("INSERT INTO users_details (forename,
surname, address_line1, address_line2, address_line3, city,
postcode, phone, email) VALUES(:forename, :surname, :address_line1,
:address_line2, :address_line3, :city, :postcode, :phone, :email) ");
"INSERT INTO users (username, password)
VALUES(:username,:password)";
I cannot figure out where I am going wrong.
Now-a-days web code learning is very popular among the young generation. So learn code please stay with us. https://www.facebook.com/CodesView/
bro, can i get ur fb id or email addrss????
You Made it buddy.. I love using PDO when i read your code, you're good.i learn something from it…
Thank you very much but the language that you used when explaining does not accommodate all of us.
it will be excellent if you used English when explaining.
thanks
how i can make the row id just like this ="UID-0001"?
I really wish you used English…
Kya is ke Our Parts Hongee
well yar
<?php
try{
$con = new PDO ("mysql:host=localhost;dbname=database_connection","root","");
if(isset($_post['submit']))
{
$Name = $_post['Name'];
$age = $_post['age'];
$city = $_post['city'];
$Address = $_post['Address'];
$registration_date = $_post['registration_date'];
$Gender = $_post['Gender'];
$insert=$con->prepare("INSET INTO database_connection (name,age,city,Address,registration_date,Gender)
values(:name,:age,:city,:Address,:registration_date,:Gender) ");
$insert->bindParam(':Name',$Name);
$insert->bindParam(':age',$age);
$insert->bindParam(':city',$city);
$insert->bindParam(':Address',$Address);
$insert->bindParam(':registration_date',$registration_date);
$insert->bindParam(':Gender',$Gender);
$insert->execute();
}
}
catch(PDOException $e)
{
echo "Error".$e->getMessage();
}
?>
<!DOCTYPE html>
<html>
<head>
<form method="post">
<br><br>
<title>Patient </title>
<style type="text/css">
body{
background-image: url(vv.jpg);
background-size:cover;
}
<input type="text" name="Name" placeholder="user name"><br><br>
<input type="text" name="age" placeholder="25/11/1997"><br><br>
<input type="text" name="city" placeholder="Islamabad"><br><br>
<input type="text" name="Address" placeholder="Islamabad"><br><br>
<select name="registration_date">
<option value="registration_date">registration_date</option>
<option value="01">01</option>
<option value="02">02</option>
<option value="03">03</option>
<option value="04">04</option>
<option value="05">05</option>
<option value="06">06</option>
<option value="07">07</option>
<option value="08">08</option>
<option value="09">09</option>
<option value="10">10</option>
</select>
<input type="text" name="Gender" placeholder="male or femail"><br><br>
<input type="submit" name="submit" value ="submit">
</c
</form>
sir how can create otp in web page with mysql data base if u know then plz make tutorial
Ma sha Allah..aselam aleykum. .awesome tutorials. Almost everything worked. but i can't login and it doesn't show any errors i can't store data at all.
wa'alaikum salam
error
Fatal error: Call to a member function bindparam() on a non-object in C:xampphtdocsphpLoginForm.php on line 23
i have erroe plz solve Fatal error: Call to a member function mysqli_bind_param() on a non-object in C:xampphtdocsphpLoginForm.php on line 23
your tutorial is excellent…but
database entry in not going on in my sql
Hi
thanks sharing Most useful information for beginners. please give me provide full source code for loging and registration code. .
Nice tutorial brother, please post more video of PDO
The tutorials would be highly appreciated if you were presenting it into English but as you did, they are crappy for me!