ajayrandhawa / User-Management-PHP-MYSQL

PHP User Management System is a powerful PHP script that offers a secure user management system. The application is a great way to build your website, allowing your users to register an account and build restricted access to certain users. We offer great support and it’s very easy to install. It’s powered by MYSQL and PHP.
224 stars 152 forks source link

It working fine in Xampp. but not working in Server #14

Closed lalamannan closed 4 years ago

lalamannan commented 4 years ago

Notification part is registering perfect. $sqlnoti="insert into notification (notiuser,notireciver,notitype) values (:notiuser,:notireciver,:notitype)"; $querynoti = $dbh->prepare($sqlnoti); $querynoti-> bindParam(':notiuser', $sender, PDO::PARAM_STR); $querynoti-> bindParam(':notireciver',$reciver, PDO::PARAM_STR); $querynoti-> bindParam(':notitype', $notitype, PDO::PARAM_STR); $querynoti->execute();

User part is not registering. $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); $query-> bindParam(':password', $password, PDO::PARAM_STR); $query-> bindParam(':gender', $gender, PDO::PARAM_STR); $query-> bindParam(':mobileno', $mobileno, PDO::PARAM_STR); $query-> bindParam(':designation', $designation, PDO::PARAM_STR); $query-> bindParam(':image', $image, PDO::PARAM_STR); $query->execute(); $lastInsertId = $dbh->lastInsertId(); if($lastInsertId)

after signup it giving Registration Sucessfull! but user database remains empty