PHP Registration Form Using PDO Prepared Statement
Code below code for a better explanation visit our youtube channel at https://www.youtube.com/channel/UCtTjECvLAA5NkyjgVTTC5eQ
************** Start Copy From Here ***************
prepare("SELECT * FROM registration WHERE email = ?");
$check->execute([$email]);
if ($check->rowCount()>0) {
// code...
echo "Email exist try another";
}else{
try{
$insert = $pdo->prepare("INSERT INTO registration(name,email,password)VALUE(?,?,?)");
if($insert->execute([$name,$email,$password])){
echo "Successful";
}
}catch(PDOException $e){
echo $e->getMessage();
}
}
}catch(PDOException $e){
echo $e->getMessage();
}
}
?>
Registration Form
************** End ***************
I am an experienced IT expert with 10+ years of experience with a track record of success in creating apps that are both well-received and commercially viable.
Skilled in working as a team and incorporating input into projects, a strong eye for detail, and tenacity to never quit on something until it is absolutely perfect.
Innovative use of technology for excellent delivery of tasks, ability to complete projects efficiently, and satisfy customers with attractive, user-friendly applications.
And also, the ability to oversee the development and dissemination of technology for external customers, vendors, and other clients to help improve and increase business.