-2

Code PHP in lib:

$spellquery = doquery("SELECT id,name,type FROM {{table}}","habilidades");
        $userspells = explode(",",$userrow["spells"]);
        $userrow["magiclist"] = "";
        while ($spellrow = mysql_fetch_array($spellquery)) {
            $spell = false;
            foreach($userspells as $a => $b) {
                if ($b == $spellrow["id"]) { $spell = true; }
            }
            if ($spell == true) {
                $userrow["magiclist"] .= "<a href=\"index.php?do=habilidad:".$spellrow["id"]."\"><img border=0 src=\"estilo/imagenes/skills/".$spellrow["name"].".png\" ></a><br />";
            }
        }
        if ($userrow["magiclist"] == "") { $userrow["magiclist"] = "none"; }

Code in Template page:

 <div>

    {{magiclist}}

    </div>

Show in page : http://lordehsa.5gbfree.com/estilo/imagenes/skills/out.JPG

i want make this : http://lordehsa.5gbfree.com/estilo/imagenes/skills/out2.jpg

4

1 回答 1

0

只需删除<br />以显示一行中的图像!

于 2013-11-09T09:19:19.473 回答