if ($count == 1){
                $suc= move_uploaded_file($file_tmp, $destin.$file_name);
                echo"<br/>";
                $query = mysqli_query($con,"INSERT INTO login ( profile_img) VALUES ('$file_name')  WHERE useremail='".$_SESSION["sess_useremail"]."'") or die("can 
                t  still upload ".mysql_error());}

problem -- i cant upload image to the db

mysqli_query is a different extension then mysql_error. Fix it and then give us the error you get.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.