Guest User

Untitled

a guest
May 21st, 2018
170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. <?php
  2.  
  3. $sqlImg = "SELECT * FROM profileimg WHERE userid='$id'";
  4. $resultImg = mysqli_query($conn, $sqlImg);
  5. $rowImg = mysqli_fetch_assoc($resultImg);
  6. $profilepicture = $rowImg['image'];
  7.  
  8. if ($rowImg['status'] == 0) {
  9. echo "<img src='".$profilepicture."' ".mt_rand()." height='200' width='200'>";}
  10. else{
  11. echo "<img src='uploads/defaultprofilepicture.jpg' height='200' width='200'>";}
  12. echo "<br>".$username;
  13.  
  14. <?php
  15.  
  16. session_start();
  17. include_once 'includes/dbh.inc.php';
  18. $id = $_SESSION['key'];
  19. $username = $_SESSION['username'];
Add Comment
Please, Sign In to add comment