Menu
Im trying to put a default image for a profile picture until a user uploads images on to the server and DB : – i know im doing something wrong but have no idea what heres my code: –
[code=php]
$profile_pic = “SELECT profile_pic FROM members WHERE userid=’$profid'”;
$pro = mysql_query($profile_pic);
while($picture = mysql_fetch_array( $pro ))
{
if ($picture != 0){
echo “<img id=’img3′ src=/”.$picture[‘profile_pic’] .”></a> “;
}else{
echo “<img src =’QU.gif’/>”;
}
}
Thanks in advance ?