Tem algo errado?? <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Documento sem título</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style>
<!--
span.estilo131
{}
.style13 {font-size: 24px; }
.style15 {color: #FF0000; font-size: 24px; }
.style16 {color: #000000; font-size: 24px; }
.style17 { color: #FF0000;
font-weight: bold;
}
.style19 {font-size: 40px}
.style2 { color: #FF0000;
font-size: 36px;
}
.style20 {color: #000000}
.style21 {font-size: 45px}
.style24 { color: #FF0000;
font-size: 28px;
}
.style26 { color: #000000;
font-size: 30px;
}
.style27 { font-size: 32px
}
.style28 {color: #FF0000}
.style30 {color: #FF0000; font-size: 18px;}
.style31 {color: #003366}
.style32 { font-size: 30px;
font-weight: bold;
}
.style34 {font-size: 24px; font-weight: bold; color: #000066; }
.style35 {color: #000066; font-size: 36px; }
.style36 {color: #000066}
.style38 { color: #333333
}
.style39 { color: #000000;
font-size: 18px;
}
.style40 {font-size: 30px}
.style41 { font-size: 36px;
font-weight: bold;
}
.style42 { font-size: 20px
}
.style43 {color: #000066; font-size: 20px; }
.style44 { font-size: 70px;
color: #FF0000;
}
.style46 { font-size: 70px;
font-weight: bold;
color: #FF0000;
}
.style6 {font-size: 18px}
.style47 {font-size: 22px}
.style12 {font-size: 24px; font-weight: bold; }
.style14 {color: #993300; font-size: 24px; }
.style25 { color: #003366;
font-size: 28px;
font-weight: bold;
}
-->
</style>
</head>
<?
include "includes/config_old.php"; // incluindo o arquivo de configurações
?>
<body>
<table border="0" width="84%"align="center">
<tr>
<td align="center">
<div align="center">
<p class="style24">
<?
$IdLista = "3"; //Variavel de teste para representando um id
//consulta sql
$query = mysql_query("SELECT * FROM E_LISTA WHERE ID_LISTA = " . $IdLista) or die(mysql_error());
while($array = mysql_fetch_array($query))
{
$array['NIVEL_1']." ".$array['NIVEL_2']." ".$array['NIVEL_3']." ".$array['NIVEL_4'];
//consulta sql
$usu1 = mysql_query("SELECT * FROM E_USUARIO WHERE ID = " . $array['NIVEL_1']) or die(mysql_error());
$nomecompleto1 = mysql_fetch_array($usu1); //mostra na tela o nome e a data de nascimento
$nomecompleto1['NOME'] ." ". $nomecompleto1['SOBRE_NOME'];
$usu2 = mysql_query("SELECT * FROM E_USUARIO WHERE ID = " . $array['NIVEL_2']) or die(mysql_error());
$nomecompleto2 = mysql_fetch_array($usu2); //mostra na tela o nome e a data de nascimento
$nomecompleto2['NOME'] ." ". $nomecompleto2['SOBRE_NOME'];
$usu3 = mysql_query("SELECT * FROM E_USUARIO WHERE ID = " . $array['NIVEL_3']) or die(mysql_error());
$nomecompleto3 = mysql_fetch_array($usu3); //mostra na tela o nome e a data de nascimento
$nomecompleto3['NOME'] ." ". $nomecompleto3['SOBRE_NOME'];
$usu4 = mysql_query("SELECT * FROM E_USUARIO WHERE ID = " . $array['NIVEL_4']) or die(mysql_error());
$nomecompleto4 = mysql_fetch_array($usu4); //mostra na tela o nome e a data de nascimento
$nomecompleto4['NOME'] ." ". $nomecompleto4['SOBRE_NOME'];
?>
</p>
<p class="style2 style19"> <span class="style20">1ª Fonte Para Ganhar Dinheiro -</span> </br>
<span class="style21">Programa de Níveis</span></p>
<p class="style25">Quem ganha quando você participa:</p>
<table width="758" border="1" bgcolor="#FFFF00">
<tr>
<td width="68"><div align="center" class="style12">Pos.:</div></td>
<td width="445"><div align="center" class="style12">Nome do participante</div></td>
<td width="108"><div align="center" class="style12">Código</div></td>
<td width="109"><div align="center" class="style13"><strong>Comissão</strong> R$</div></td>
</tr>
<tr>
<td height="34"><div align="center" class="style14">1-</div></td>
<td class="style13"><? echo $nomecompleto1['NOME'] ." ". $nomecompleto1['SOBRE_NOME']?></td>
<td class="style13"><div align="center"><? echo $array['NIVEL_1']?></div></td>
<td><div align="center" class="style15">R$12,00</div></td>
</tr>
<tr>
<td><div align="center" class="style14">2-</div></td>
<td class="style13"><? echo $nomecompleto2['NOME'] ." ". $nomecompleto2['SOBRE_NOME']?></td>
<td class="style13"><div align="center"><? echo $array['NIVEL_2']?></div></td>
<td><div align="center" class="style15">R$9,00</div></td>
</tr>
<tr>
<td><div align="center" class="style14">3-</div></td>
<td class="style13"><? echo $nomecompleto3['NOME'] ." ". $nomecompleto3['SOBRE_NOME']?></td>
<td class="style13"><div align="center"><? echo $array['NIVEL_3']?></div></td>
<td><div align="center" class="style15">R$6,00</div></td>
</tr>
<tr>
<td height="33"><div align="center" class="style14">4-</div></td>
<td class="style13"><? echo $nomecompleto4['NOME'] ." ". $nomecompleto4['SOBRE_NOME']?></td>
<td class="style13"><div align="center"><? echo $array['NIVEL_4']?></div></td>
<td><div align="center" class="style15">R$5,00</div></td>
</tr>
<?
}
?>
</table>
<p class="style24">CONTEUDO SO SITE!!
</body>
</html>