Hi hab ein problem mit einem block (selbst erstellt)
Er wählt zwar ein Profil aus aber nicht nach dem zufallsprinzip sonder nur das erste!!
Hier mal der code vielleicht weiß das einer von euch. Komme jetzt einfach nicht drauf was nicht stimmt.
if (!defined("mxMainFileLoaded")) die ("You can't access this file directly...");
global $prefix;
$blockheigth = 80;
$pic = sql_fetch_array(sql_query("SELECT cid, uname, picture, points, voters, rating FROM ${prefix}_photovote_pictures WHERE gender='1' ORDER BY rand() LIMIT 1"));
if(!empty($pic))
{
$content = "<b>".$pic['uname'].":</b><br /><a href='modules.php?name=Userinfo&uname=".$pic['uname']."' border='0'> <img src='members/thumbs/".$pic['picture']."'></a><br><a href=\"http://flirt4u.net/modules.php?name=JSM_PhotoVote&cid=".$pic['cid']."&pos=0&cat=0\">Jetzt Abstimmen!</a>";
}
else
{
$content = "<b>Keine</b> Avatare hochgeladen<br><br><b>No</b> Avatar's uploaded";
}