if ($count == 1){
                $suc= move_uploaded_file($file_tmp, $destin.$file_name);
                $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());}

Recommended Answers

All 2 Replies

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, learning, and sharing knowledge.