$stmt = $conn->query("SELECT ProfilePicture FROM Profile WHERE UserID='$id'"); while($image =$stmt->fetch(PDO::FETCH_ASSOC)) { if (!$_REQUEST['file']) { echo "<img src=imgs/default.jpg width='150' height='150'/>"; } else { echo "<img src=uploads/".$image['Picture']."' width='150' height='150'/>"; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)