回覆列表
  • 1 # 上進的白雲5

    ========================================

    html:

    <div>

    <fieldset>

    <legend>俱樂部成員</legend>

    <div class = "userList">

    <p> </p>

    </div>

    </fieldset>

    <div></div>

    </div>

    ==========================================

    css:

    .showUser{

    width:780px;

    padding:10px;

    }

    .showUser legend {

    margin-bottom:20px;

    font-size:200%;

    }

    .userList{

    margin-bottom:5px;

    word-break:break-all;

    word-wrap:break-word;

    float:left;

    }

    .userList img {

    margin:5px 19.5px;

    border:4px solid #d7e1ed;

    display:block;

    }

    .userList a {

    margin:5px 19.5px;

    color:#444;

    text-decoration:none;

    }

    .userList a:hover {

    color:#888;

    text-decoration:none;

    }

    ===========================================

    function getName()

    {

    global $DB,$mysql_prefix;

    $nameArr = array();

    $con = mysql_connect("localhost", "root", "admin");

    if (!$con)

    {

    die("Could not connect: " . mysql_error());

    }

    $db_selected = mysql_select_db("micblog",$con);

    $sql = "SELECT `UID`, `AVATAR`, `USERNAME` FROM `WEIQU_USERINFO`";

    $result = mysql_query($sql,$con);

    while($Re = mysql_fetch_array($result))

    {

    $nameArr[] = array(

    "uid" => strip_tags($Re["UID"]),

    "userName" => strip_tags($Re["USERNAME"]),

    "avatar" => strip_tags($Re["AVATAR"]),

    );

    }

    $return["Name"] = $nameArr;

    return $return;

    }

  • 中秋節和大豐收的關聯?
  • 沙丘2000怎樣才可以玩?