<table cellspacing="0" cellpadding="0"><tr><td class="t_f" id="postmessage_45767"> <div class="blockcode"> <div id="code_GK6"><ol> <li> <li> <?php <li>$query="INSERT INTO `testtable` (`clou1`,`clou2`) VALUES ('testvalue','test')";</li> <li>mysql_query($query);</li> <li>$query="SELECT LAST_INSERT_ID()";</li> <li>$result=mysql_query($query);</li> <li>$rows=mysql_fetch_row($result);</li> <li>echo $rows[0];</li> </ol></div> <em onclick="copycode($('code_GK6'));">复制代码</em> </div> </td></tr></table> <div id="comment_45767" class="cm"> </div> <div id="post_rate_div_45767"></div> <br><br>