01-10-2009, 04:08 PM
|
#1 (permalink)
|
|
playstation
Registrado em: Dec 2008
Localização: Belo Horizonte
Posts: 1,284
Agradecido 1,503 Vezes em 772 Posts
Achei Ruim:
Acharam ruim Vezes em Posts
Meu Estado:
|
Teste com esse:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Pagina Inicial</title>
<style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
background-image: url(images/bg1.gif);
}
body,td,th {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10px;
color: #FFFFFF;
}
.style2 {
font-size: 36px;
font-weight: bold;
}
-->
</style>
<script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
</head>
<body>
<br />
<table width="90%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td valign="top"><div align="center">
<div align="center">
<h1 align="center">Herois</h1>
<div align="left">
<p align="center"><img src="img/barra.png" alt="" width="419" height="29" /><br />
</p>
<h4 align="center">
<font color="#FFFFFF">
<?
//Script cirado por _Dudu_1533
//www.portal1533.com.br
//www.virtualmu.com.br
$servidor = 'localhost';
$usuario = 'root';
$senha = '';
$db = 'l2jdb';
$con = mysql_connect($servidor, $usuario, $senha) or die(mysql_error());
mysql_select_db($db, $con) or die(mysql_error());
?>
<html>
<head>
<title>Lineage II L2 Mega </title>
<style type="text/css">
<!--
.style5 {font-size: 15px; font-family: Arial, Helvetica, sans-serif; font-weight: bold; }
.style8 {font-size: 12px; font-family: Arial, Helvetica, sans-serif; }
.style4 {font-size: 17px; font-family: Arial, Helvetica, sans-serif; font-weight: bold; }
body {
background-image: url(images/bg1.gif);
}
-->
</style>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /></head>
<body>
<table width="100% border="0" class="style4">
<tr>
<td align="center">Listando HEROES do servidor</td>
</tr>
</table>
<br>
<br>
<table width="100%" border="0">
<tr bgcolor="#1E1A11" class="style5" align="center" height="30">
<td>Nome char:</td>
<td>Level:</td>
<td>Classe:</td>
<td>Clan:</td>
<td>Count:</td>
</tr>
<?
$sql = mysql_query("SELECT * FROM heroes ORDER BY char_name") or die(mysql_error());
$cor = 0;
while($c = mysql_fetch_array($sql)) {
$cor = $cor + 1;
$bg = $cor % 2 == 0 ? '#F1F1F1' : '#E8E8E8';
$h = mysql_query("SELECT * FROM characters WHERE obj_Id = '".$c['char_id']."'") or die(mysql_error());
$n = mysql_fetch_array($h);
$l = mysql_query("SELECT * FROM class_list WHERE id = '".$n['base_class']."'") or die(mysql_error());
$g = mysql_fetch_array($l);
$i = mysql_query("SELECT * FROM clan_data WHERE clan_id = '".$n['clanid']."'") or die(mysql_error());
$j = mysql_fetch_array($i);
$g['class_name'] = explode("_", $g['class_name']);
$j['clan_name'] = empty($n['clanid']) ? 'Sem Clan.' : $j['clan_name'];
?>
<tr bgcolor="<?php echo $bg; ?>" class="style8" align="center" height="23">
<td><?php echo $n['char_name']; ?></td>
<td><?php echo $n['level']; ?></td>
<td><?php echo ucwords($g['class_name'][1]); ?></td>
<td><?php echo $j['clan_name']; ?></td>
<td><?php echo $c['count']; ?></td>
</tr>
<?
}
?>
</table>
</h4>
</div>
</div>
<p> </font></p>
</div></td>
</tr>
</table>
</body>
</html>
__________________
Há! Só posso rir de quem quer vender o que mal sabe fazer...
Quer ser respondido direito!? Não faça perguntas idiotas. (Y)
|
|
|