<table cellspacing="0" cellpadding="0"><tr><td class="t_f" id="postmessage_47678"> <div class="blockcode"> <div id="code_AtM"><ol> <li> <li><?php <li>$conn = mysql_connect("服务器名","用户名","密码"); <li>mysql_select_db("数据库名", $conn);<li>$result = mysql_query("select * from table", $conn); <li>while($row = mysql_fetch_array($result)) { <li>echo $row["a_id"]; <li>echo $row["a_name"]; <li>} <li>mysql_free_result($result); <li>?></li> </ol></div> <em onclick="copycode($('code_AtM'));">复制代码</em> </div> </td></tr></table> <div id="comment_47678" class="cm"> </div> <div id="post_rate_div_47678"></div> <br><br>