note 110618 deleted from function.mysql-fetch-row by aharvey

From: Date: Wed, 14 Nov 2012 01:49:41 +0000
Subject: note 110618 deleted from function.mysql-fetch-row by aharvey
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-191917@lists.php.net to get a copy of this message
Note Submitter: kamikaze_Zack at yahoo dot com ---- <center><? include("../includes/config.php"); require("../inc/anti_dos.php"); $msdb=mssql_select_db("$ryl_db_game",$msconnect); $query = "SELECT TOP $TopP_amount Name,Level,Race,Fame from CharInfo order by Fame desc, level desc"; $result = mssql_query($query); echo '<table width="0" border="0" cellspacing="0" cellpadding="0">'; echo ' <tr>'; echo ' <td>'; echo ' <table width="0" border="0" cellspacing="0" cellpadding="0">'; echo ' <tr>'; echo ' <td align="center" bgcolor="">'; echo ' </td>'; echo ' </tr>'; echo ' <tr>'; echo ' <td>'; echo ' <table style="color: rgb(255, 255, 255); font-size: 8pt; " align="left" border="0" cellspacing="1" width="160">'; echo ' <tr>'; echo ' </tr>'; for($i=0;$i < mssql_num_rows($result);++$i) { $row = mssql_fetch_row($result); $rank = $i+1; if ($row[2] == "0") { $class = "KR"; }; if ($row[2] == "1") { $class = "MK"; }; echo ' <tr>'; echo ' <td align="left" valign="top"><font face= verdana color=white>'.$class.'</font></b></td>'; echo ' <td align="left" valign="top"><font face= verdana color=white>'.$row[0].'</font></b</td>'; echo ' <td align="right" valign="top"><font face= verdana color=white>'.$row[3].'</b></font></td>'; } echo ' </table>'; echo ' </td>'; echo ' </tr>'; echo ' </table>'; echo ' </td>'; echo ' </tr>'; echo '</table>'; ?></center> </p>

« previous php.notes (#191917) next »