Commit 4c186da6 authored by Ranindya Paramitha's avatar Ranindya Paramitha
Browse files

[FIXING] edit_profile profile picture

parent cd2e8206
......@@ -37,10 +37,10 @@
if ($pp != NULL){
$upload_file_name = $upload_dir.$pp;
if (file_exists($upload_file_name)){
$sql_query_picture = 'UPDATE user SET profile_picture = "'.$upload_dir.$pp.'" WHERE id = '.$id;
$sql_query_picture = 'UPDATE user SET profile_picture = "'.$pp.'" WHERE id = '.$id;
$result = $conn->query($sql_query_picture);
} else if (move_uploaded_file($tmp_pp, $upload_dir.$pp)){
$sql_query_picture = 'UPDATE user SET profile_picture = "'.$upload_dir.$pp.'" WHERE id = '.$id;
$sql_query_picture = 'UPDATE user SET profile_picture = "'.$pp.'" WHERE id = '.$id;
$result = $conn->query($sql_query_picture);
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment