$result = dbquery("SELECT dovana from dovanos WHERE kam='".$user_data['user_id']."' ORDER BY laikas DESC LIMIT 0,1");
if (dbrows($result)) {
while ($data = dbarray($result)){
$dovana = $data['dovana'];
}
echo "<img src='".IMAGES."dovanos/$dovana.png'>";
}