Hello all,
this could be very simple, but I'm really stuck, and I'm very very very new to php (hence, why im posting this in the newbie forum). Anyways, I have a mysql database, and I want my page to echo a certain row (+column), but only if theres actually data inside it.
So, im only guessing itd be something like:
$avatar = @$row["user_avatar"];
if (empty($avatar))
{
echo "No avatar"
}
else
{
echo <IMG SRC="<?php echo $x_user_avatar; ?>">
}
Thank you, in advance 🙂