Bruno_idsoftware
Membros-
Total de itens
6 -
Registro em
-
Última visita
Sobre Bruno_idsoftware
Bruno_idsoftware's Achievements
0
Reputação
-
Valeu Nosreve... Funcionou perfeito! Obrigado. Abraço.
-
Galera preciso de uma ajudinha. Quero alterar um campo de todos os registros de uma tabela Mysql. A lógica é seguinte: 1- verifico o primeiro registro da tabela 2- verifico o campo2 desse registro 3- Gravo o valor do campo2 em uma variavel 4- modifico o campo1 para o mesmo valor do campo2 (usando a variável ou não) 5- vou para o próximo registro Faço isso até o final da tabela... PHP e MySQL. Aguardo... Desde já agradeço.
-
Existe a possibilidade de se criar um arquivo .php com a função que eu quero.. E dentro do home.htm chamar esse arquivo somente pra executar essa função??
-
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>
-
Então se eu colocar isso na web, vai rodar tranquilo!? fiz uma cópia da home.htm e renomeei para home.php... Ai chamei ela: Mas também não foi... Coloquei o arquivo .htaccess no diretório da home.htm mas também não rolou... Será que na web roda? Testado.... Nem na web Roda!! alguém sabe como resolver?
-
Olá galera... Sou novatão em PHP... Mas tenho uma ótima noção de lógica, pois sou programador Delphi... Bom só que agora to abrindo minha mente para o mundo WEB... Beleza... To afim de desenvolver um site... Seguinte arrumei um script O script usa esse código para chamar a pagina principal.. Eu preciso colocar uma função PHP nessa pagina (home.htm).. Uma função que imprime dados do BD no inicio da página... A função é fácil fazer... porem ela não funciona na home.htm Podem me dar uma força?