24-04-2009, 10:33 AM
|
#2 (permalink)
|
|
Membro - Veterano
Registrado em: Nov 2008
Posts: 402
Agradecido 1,012 Vezes em 159 Posts
Achei Ruim:
Acharam ruim Vezes em Posts
Meu Estado:
Nome Real: Vinicius Miranda
|
Bom vamos lá,
Você configuro os dados da database?
Configure assim:
$servidor = 'localhost'; // Coloque aqui o IP $usuario = 'root'; // Login do Mysql $senha = ''; // Senha do Mysql $db = 'l2jdb'; // Nome da Database
-----------------
Hero.php
<!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 Blood of Fire</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="#/FFF0000" 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 ? '#FFFF0000' : '#FFF4874';
$h = mysql_query("SELECT * FROM characters WHERE charid = '".$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>
Coloque esse Script que eu botei ai em cima para ver se vai resolver
--------------------
Tente usar o Abyss Web Server X1 para ver se resolve
|
|
|