<tr> <td colspan="2" class="er">数据库 <?php echo $_POST['mysqlDb']; ?> </td> <td colspan="2" class="fl"><?php echo @mysql_select_db($_POST['mysqlDb'], $link) ? '<span style="color: #008000; font-weight: bold;">OK</span>' : '<span style="color: #ff0000; font-weight: bold;">Failed</span>'; ?> </td> </tr> </table> <?php } ?> <p style="color:#62ADC2;font-size:14px;text-align:center; margin-bottom:3px;"> <?php $up_time = sprintf('%0.6f', micro_time_float() - $up_start); ?> 页面执行时间 <?php echo $up_time; ?> 秒 消耗内存 <?php echo memory_usage(); ?> </p> <hr style="width:100%; color:#cdcdcd" noshade="noshade" size="1" /> <p style="color:#505050; font-size:14px; text-align:center;">©2003-2014 <a href="http://www.upupw.net">WWW.UPUPW.NET</a> 版权所有</p> </div> </body> </html>
<table width="100%" class="inp"> <tr> <th colspan="4" class="ec">MySQL 测试结果</th> </tr> <?php $link = @mysql_connect($_POST['mysqlHost'], $_POST['mysqlUser'], $_POST['mysqlPassword']); $errno = mysql_errno(); if ($link) $str1 = '<span style="color: #008000; font-weight: bold;">OK</span> ('.mysql_get_server_info($link).')'; else $str1 = '<span style="color: #ff0000; font-weight: bold;">Failed</span><br />'.mysql_error(); ?> <tr> <td colspan="2" class="er" width="50%">MySQL <?=$_POST['mysqlHost']?></td> <td colspan="2" class="fl" width="50%"><?=$str1?></td> </tr> <tr> <td colspan="2" class="er">数据库 <?=$_POST['mysqlDb']?></td> <td colspan="2" class="fl"><?=(@mysql_select_db($_POST['mysqlDb'],$link))?'<span style="color: #008000; font-weight: bold;">OK</span>':'<span style="color: #ff0000; font-weight: bold;">Failed</span>'?></td> </tr> </table> <? } ?> <p style="color:#33384e;font-size:14px;text-align:center; margin-bottom:2px;"> <?php $up_time = sprintf('%0.6f', micro_time_float() - $up_start);?>页面执行时间 <?php echo $up_time?> 秒 消耗内存 <?php echo memory_usage();?> </p> <hr style="width:100%; color:#cdcdcd" noshade="noshade" size="1" /> <p style="color:#505050; font-size:14px; text-align:center;">©2014 <a href="http://bozoyan.com">Bozoyan.com</a> 版权所有</p> </div> </body> </html>