Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $sqlImg = "SELECT * FROM profileimg WHERE userid='$id'";
- $resultImg = mysqli_query($conn, $sqlImg);
- $rowImg = mysqli_fetch_assoc($resultImg);
- $profilepicture = $rowImg['image'];
- if ($rowImg['status'] == 0) {
- echo "<img src='".$profilepicture."' ".mt_rand()." height='200' width='200'>";}
- else{
- echo "<img src='uploads/defaultprofilepicture.jpg' height='200' width='200'>";}
- echo "<br>".$username;
- <?php
- session_start();
- include_once 'includes/dbh.inc.php';
- $id = $_SESSION['key'];
- $username = $_SESSION['username'];
Add Comment
Please, Sign In to add comment