| Code: : |
<?php if (eregi("block-CCart_Products.php", $PHP_SELF)) { Header("Location: index.php"); die(); } $host = "********"; $user = "********"; $password = "********"; mysql_connect($host, $user, $password) or die ("could not make it"); $db = mysql_select_db("cash4kil_psstats") or die ("could not get in database"); $query = "SELECT * FROM pstatsplr"; $result = mysql_query($query); $i=0; while ( $row = mysql_fetch_array($result, MYSQL_BOTH)) { extract($row); $sum1 = $skill - $prevskill; { if ($i <= 10) echo "<table width='30%' border='1'><tr><td>$name</td><td width='10%' align='center'>$sum1<br></td></tr></table>"; } $i++; } ?> |
| Code: : |
<?php #### Generated by Block Creator by Disipal Site (www.disipal.net) ### if (eregi("block-Block_Creator.php",$PHP_SELF)) { Header("Location: index.php"); die(); } $content = "<?php"; $content .= "if (eregi(\"block-CCart_Products.php\", $PHP_SELF)) {"; $content .= "Header(\"Location: index.php\");"; $content .= "die();"; $content .= "}"; $content .= "$host = \"********\";"; $content .= "$user = \"********\";"; $content .= "$password = \"********\";"; $content .= "mysql_connect($host, $user, $password)"; $content .= " or die (\"could not make it\");"; $content .= "$db = mysql_select_db(\"cash4kil_psstats\")"; $content .= " or die (\"could not get in database\");"; $content .= "$query = \"SELECT * FROM pstatsplr\";"; $content .= "$result = mysql_query($query);"; $content .= "$i=0;"; $content .= "while ( $row = mysql_fetch_array($result, MYSQL_BOTH)) {"; $content .= "extract($row); $sum1 = $skill - $prevskill;"; $content .= " {"; $content .= " if ($i <= 10)"; $content .= " echo \"<table width='30%' border='1'><tr><td>$name</td><td width='10%' align='center'>$sum1<br></td></tr></table>\";"; $content .= " }"; $content .= " $i++; }"; $content .= "?>"; ?> |
| Code: : |
mysql_connect($host, $user, $password) or die ("could not make it"); $db = mysql_select_db("cash4kil_psstats") or die ("could not get in database"); $query = "SELECT * FROM pstatsplr"; $result = mysql_query($query); $i=0; while ( $row = mysql_fetch_array($result, MYSQL_BOTH)) { if ($i == 10) extract($row); $sum1 = $skill - $prevskill; { $content = "<table><tr><td>$name</td><td width='10%' align='center'>$sum1<br></td></tr></table>"; $i++; } } ?> |