From ebe6639420f2a1a5b28700a8087ea3e94842365f Mon Sep 17 00:00:00 2001 From: Rafael Gil Date: Thu, 18 Oct 2018 14:36:45 -0400 Subject: [PATCH 1/2] - adding missing images directory for avatar --- images/.gitignore | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 images/.gitignore diff --git a/images/.gitignore b/images/.gitignore new file mode 100644 index 0000000..e69de29 From 0d4eb37d5407959e266fa17a06c9d16e25e734a3 Mon Sep 17 00:00:00 2001 From: Rafael Gil Date: Thu, 18 Oct 2018 14:37:41 -0400 Subject: [PATCH 2/2] - 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);