Configurando XAMPP:
Abra seu PHP.INI
Proccure por
Código:
error_reporting =
Deixe assim :
Código:
error_reporting = E_ALL & ~E_NOTICE & ~E_DEPRECATED
Código:
<script language="javascript"> function click() { if (event.button==2||event.button==3) { oncontextmenu='return false'; } } document.onmousedown=click document.oncontextmenu = new Function("return false;") </script> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <title></title> <style type="text/css"> <!-- body,td,th { color: #238E23; font-size: 10pt; font-weight: bold; font-family: Arial, Helvetica, sans-serif; } body { background-image: url(); } --> </style> <script language="JavaScript" type="text/JavaScript"> <!-- function MM_reloadPage(init) { //reloads the window if Nav4 resized if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) { document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }} else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload(); } MM_reloadPage(true); //--> </script> </head> <body style=""> <div align="center"></div> <table> <tbody> <tr></tr> <div align="center"></div> <tbody> <?php $dbhost = 'DRIVER={SQL Server};SERVER=RSP\SQLEXPRESS;DATABASE=DB_Tank'; $dbuser = "sa"; $dbpass = "123456"; $connection = odbc_connect($dbhost, $dbuser, $dbpass); $verifica = "SELECT TOP 15 * FROM Sys_Users_Detail WHERE UserName != 'Jeck' ORDER BY Grade DESC"; echo '<table align="center" ><tr><td class="STYLE8"></td><td width=100%" class="STYLE8">Nick</td><td width="100%" class="STYLE8">Level</td></tr>'; $rank = odbc_exec($connection, $verifica); if($pg == 1 or $pg == 0){ $i = 1; }elseif($pg > 1){ $i = $ini+1; } while($dados = odbc_fetch_array($rank)) { $id=$i+1; echo ($i % 2) ? "<tr>" : "<tr>"; echo '<td><center>'.$i.'</center></td>'; echo '<td> '.$dados['UserName'].'</td>'; echo '<td><center>'.$dados['Grade'].'</center></td>'; echo '</tr>'; $i++; } echo '</table>'; ?> </html>
Código PHP:
$dbhost = 'DRIVER={SQL Server};SERVER=(NOMEPC)\SQLEXPRESS;DATABASE=DB_Tank';
Código PHP:
$dbuser = "sa"; $dbpass = "(senhasql)";
Código PHP:
$verifica = "SELECT TOP 15 * FROM Sys_Users_Detail WHERE UserName != 'Jeck' ORDER BY Grade DESC";
Edite o UserName != 'Jeck' para o Nickname do seu ADMIN para nao mostrar no Ranking ;D
Créditos Jeckmib
Dúvidas ?
Assinar:
Postar comentários (Atom)
0 comentários:
Postar um comentário