returning to default picture";
$statement = $pdo->prepare("UPDATE users SET profilepicture = :imageurl WHERE id = :userid");
$result = $statement->execute(array('imageurl' => $imageurl, 'userid'=> $userid ));
if($result) {
die('
Changed Profile Picture. Going to profile now.');
}
}
else {
$statement = $pdo->prepare("UPDATE users SET profilepicture = :imageurl WHERE id = :userid");
$result = $statement->execute(array('imageurl' => $imageurl, 'userid'=> $userid ));
if($result) {
die('
Changed Profile Picture. Going to profile now.');
}
}
}
?>
Right now you need to upload the picture somewhere and input the URL here.
Please be aware that only the following filetypes will work!
jpg
gif
png