0
<?php

$User_ID=$_SESSION['UserId'];
$query = mysql_query("SELECT * FROM Users WHERE UserId='$User_ID'");
$row = mysql_fetch_array($query);
$filename=$row['PicUrl'];
if(isset($_SESSION["UserName"])){?>

        <img src="images/<?php echo $filename?>"  align="left"width="50px" height="50px"/> <?php echo $_SESSION["UserName"];
echo"<li><a href='logout.php'>Click here to Logout.</a></li>";
echo"<li><a href='user_update.php'>edit your account detail</li>";
}

?>

if pic url is empty then hide img scr

2
Contributors
2
Replies
12
Views
3 Years
Discussion Span
Last Post by rjusman90
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.