From 0d4eb37d5407959e266fa17a06c9d16e25e734a3 Mon Sep 17 00:00:00 2001 From: Rafael Gil Date: Thu, 18 Oct 2018 14:37:41 -0400 Subject: [PATCH] - register new users is not working because "status" field is set to "not null" be default --- register.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/register.php b/register.php index 473c5a9..a66dcaf 100644 --- a/register.php +++ b/register.php @@ -31,7 +31,7 @@ $querynoti-> bindParam(':notireciver',$reciver, PDO::PARAM_STR); $querynoti-> bindParam(':notitype', $notitype, PDO::PARAM_STR); $querynoti->execute(); -$sql ="INSERT INTO users(name,email, password, gender, mobile, designation, image) VALUES(:name, :email, :password, :gender, :mobileno, :designation, :image)"; +$sql ="INSERT INTO users(name,email, password, gender, mobile, designation, image, status) VALUES(:name, :email, :password, :gender, :mobileno, :designation, :image, 1)"; $query= $dbh -> prepare($sql); $query-> bindParam(':name', $name, PDO::PARAM_STR); $query-> bindParam(':email', $email, PDO::PARAM_STR);