Ir para conteúdo
Fórum Script Brasil

jhonnywg

Membros
  • Total de itens

    128
  • Registro em

  • Última visita

Tudo que jhonnywg postou

  1. jhonnywg

    Outro Probleminha :p

    qual e a msg de erro que da??
  2. tenta dividir em mais uma linha o codigo da tabela que você não quer que se mecha!!
  3. jhonnywg

    Duvidas

    ou nesse www.apostilando.com.br
  4. jhonnywg

    Duvidas

    tenta nesse www.superphp.com.br
  5. jhonnywg

    Post

    mande o seu godigo pra que nos possamos dar uma olhada * Editado por Erro404: quando for corrigir um erro, cara, edite o seu post anterior, não precisa postar novamente *
  6. bem vcseis sabem me diser se o php aseita unmause como o java e outras asoems
  7. bem eu quero que nessa tabela de formulario não mande o e-mail e nem nome sem eles estarem prenchidos alguém pode me ajudar <table width="87%" border="0" cellpadding="1"> <tr> <td width="14%"></td> <td width="11%">Nome:</td> <td width="75%"> <input type="text" name="nome" maxlength="50" size="50"> </td> </tr> <tr> <td></td> <td>E-mail:</td> <td> <input type="text" name="email" maxlength="50" size="50"> </td> </tr> <tr> <td></td> <td>Endere&ccedil;o:</td> <td> <input type="text" name="endereco" maxlength="50" size="35"> N&deg; <input type="text" name="numero" maxlength="10" size="7"> </td> </tr> <tr> <td></td> <td>Cidade:</td> <td><input type="text" name="cidade" maxlength="30" size="20"> </td> </tr> <tr> <td></td> <td>Estado:</td> <td><input type="text" name="estado" maxlength="30" size="20"> </td> </tr> <tr> <td></td> <td>CEP:</td> <td> <input type="text" name="cep" maxlength="9" size="14" > </td> </tr> <tr> <td></td> <td>Telefone:</td> <td> <input name="telefone" type="text" value="( )" size="14" maxlength="16" align="right"> </td> </tr> <tr> <td></td> <td>Fax:</td> <td> <input name="fax" type="text" value="( ) " maxlength="16" size="14"> </td> </tr> <tr> <td></td> <td></td> <td></td> </tr> <tr> <td></td> <td></td> <td><textarea name="texto" cols="50" rows="10" maxlength="500"></textarea></td> </tr> <tr> <td></td> <td></td> <center> <td> <input type="submit" name="Submit" value="Enviar"> <input name="limpar" type="reset" value="Limpar"> </td> </center> </tr> </table>
  8. jhonnywg

    Executar Comando Linux No Php

    so que eu so executei no freebsd so que e quase a mesma coisa pro linux e bem fasil
  9. jhonnywg

    Executar Comando Linux No Php

    bem tem como você excutar esse tipo de comando so com html
  10. jhonnywg

    Erro No Envio De Email

    mail ("jhonnywg@sul.com.br", "fale conosco", "'Nome : ', $nome, '<br />', 'E-mail : ', $email, '<br />', 'Endereço : ', $endereco, '<br />', 'Cidade : ', $cidade, '<br />', 'Estado : ', $estado, '<br />', 'Cep : ', $cep, '<br />', 'Telefone : ',$telefone ,'<br />', 'Fax : ', $fax, '<br />', 'Texto :', $texto, '<br />'", "from: www.jhonny.com.br"); So que asim não manda o godigo pro e-mail mas se eu colocar asim ele manda mais em uma linha so tipo vai fica nome jhonny email jhonnywg@sul.com.br.... mail ("jhonnywg@sul.com.br", "fale conosco", "$nome, $email, $endereco, $cidade, $estado, $cep, $telefone , $fax, $texto,", "from: www.jhonny.com.br");
  11. jhonnywg

    Erro No Envio De Email

    se for asim ele vai normal so que ele aprarese so em uma linha so que eu quero que cada variavel aparesa em uma linha diferente mail ("jhonnywg@sul.com.br", "fale conosco", "$nome, $email, $endereco, $cidade, $estado, $cep, $telefone , $fax, $texto,", "from: www.jhonny.com.br");
  12. jhonnywg

    Erro No Envio De Email

    sim ele so não envia
  13. bem eu to com um ploblema nese cogigo se eu coloco ele do jeito que ele não envia o e-mail podem me ajudar a resouver esse ploblema mail ("jhonnywg@sul.com.br", "fale conosco", "'Nome : ', $nome, '<br />', 'E-mail : ', $email, '<br />', 'Endereço : ', $endereco, '<br />', 'Cidade : ', $cidade, '<br />', 'Estado : ', $estado, '<br />', 'Cep : ', $cep, '<br />', 'Telefone : ',$telefone ,'<br />', 'Fax : ', $fax, '<br />', 'Texto :', $texto, '<br />'", "from: www.jhonny.com.br");
  14. jhonnywg

    Ico

    bem eu sei que não tem nada a ver com php nem mysql mais eu quero saber se algum de vocês sabem de algum programa que transforme jpg em .ico icones ?? bem agora não vou poder discutir sobre isso mais depois eu leio tenho que ir da aula e ate mais brigado pra quem responder
  15. jhonnywg

    Quero Separar

    muito obrigado vou tentar
  16. jhonnywg

    Quero Separar

    esse e o codigo que eu to usando <?php $fp = fopen ("order.txt","r"); if (!$fp) { echo '<p>não esta dando.</strong></p>'; exit; } $tabela =""; while (!feof($fp)) { $order = fgets($fp, 999); $tabela .= "\n <tr> <td><font size=2>".$order."</font></td> </tr>"; } $html = "\n <html> <body> <table border=3 width=100%> <tr> <td></td> </tr> ".$tabela." </table> </body> </html>"; print ($html); ?>
  17. jhonnywg

    Quero Separar

    bem eu to querendo ter um arquivo txt so que nesse arquivo tem txt e numeros IP eu quero saber se tem como eu separ os numeros ip dos testa em tabelas diferentes 192.168.9.2 - - [22/Jul/2004:01:37:55 -0300] "OPTIONS / HTTP/1.1" 302 14 "-" "Microsoft-WebDAV-MiniRedir/5.1.2600" pra que u posa colocar por ordem de ip:??
  18. jhonnywg

    Debugador

    não tem nada la!!
  19. tente colocar .number_format( a variavel que você ta emprimindo ,2)
  20. coloque o godigo na tela eu so novato mais vendo o godigo poso te ajudar
  21. coleque godigo na tela pra que eu psa dar uma olhado!!!
  22. jhonnywg

    Debugador

    bem eu queria saber se algum de voceis sabem se tem alguma feramenta que eu posa usar com debugador (que excute meu programa linha por linha)? ou eu so poso fazer isso dando print ?? en certos lugares??
  23. jhonnywg

    Debugador

    bem eu queria saber se algum de voceis sabem se tem alguma feramenta que eu posa usar com debugador (que excute meu programa linha por linha)?
  24. jhonnywg

    Problemas Com Mysql

    sim meu manjo eu sei como fazer pra auterar e excluir tudo isso mais eu quero criar um abijeto que fasa isso pra mim e depois so chamar esse obijeto no meu escript esse e o codigo so que eu quero fazer um objeto de conexão e outro de auteração e exclusão etc, <? ######################################## # Função de execução de requisições SQL ######################################## function executaRequisicao($sql) { $conn = mysql_connect ("localhost","root","elaborata"); mysql_select_db ("aula09",$conn); $data = array (); $result = mysql_query ($sql,$conn); if (eregi ("select",$sql)) { while ($tmp = mysql_fetch_array ($result,1)) { $data[] = $tmp; } } else { $data = mysql_affected_rows ($conn); } mysql_close ($conn); return $data; } ####################### # Chaveamento de ações ####################### if (isset ($acao) && strlen ($acao)) { switch ($acao) { case "Incluir": if (strlen ($inc_nome) && strlen ($inc_idade)) { $tmp = executaRequisicao("insert into tCadastro (Nome,Idade) values ('".$inc_nome."',".$inc_idade.")"); } break; case "Excluir": if (strlen ($alt_id)) { $tmp = executaRequisicao("delete from tCadastro where Id=".$alt_id); } break; case "Alterar": if (strlen ($alt_id) && strlen ($alt_nome) && strlen ($alt_idade)) { $tmp = executaRequisicao("update tCadastro set Nome='".$alt_nome."',Idade=".$alt_idade." where Id=".$alt_id); } break; } } ################## # Layout de busca ################## $html_busca = ""; $registros = executaRequisicao("select * from tCadastro order by Id"); if (count ($registros)) { for ($i = 0; $i < count ($registros); $i++) { $html_busca_registros .= "\n <form action=cadastro.php method=post> <tr> <td align=center><input type=text name=alt_nome size=20 value=\"".$registros[$i]["Nome"]."\" class=texto_preto /></td> <td align=center><input type=text name=alt_idade size=3 value=\"".$registros[$i]["Idade"]."\" class=texto_preto /></td> <td align=center> <input type=hidden name=alt_id value=\"".$registros[$i]["Id"]."\" /> <input type=submit name=acao value=Alterar class=texto_preto /> <input type=submit name=acao value=Excluir class=texto_preto /> </td> </tr> </form>"; } $html_busca = "\n <table border=0 align=center> <tr> <td colspan=3 align=center bgcolor=#00F> <font class=texto_branco>Registros encontrados (".count ($registros).")</font> </td> </tr> <tr> <td align=center><font class=texto_preto>Nome</font></td> <td align=center><font class=texto_preto>Idade</font></td> <td align=center><font class=texto_preto>Ação</font></td> </tr> ".$html_busca_registros." </table>"; } ##################### # Layout de inclusão ##################### $html_inclusao = "\n <form action=cadastro.php method=post> <table border=0 align=center> <tr> <td colspan=2 align=center bgcolor=#00F> <font class=texto_branco>Novo registro</font> </td> </tr> <tr> <td align=right><font class=texto_preto>Nome:</font></td> <td><input type=text name=inc_nome size=20 class=texto_preto /></td> </tr> <tr> <td align=right><font class=texto_preto>Idade:</font></td> <td><input type=text name=inc_idade size=3 class=texto_preto /></td> </tr> <tr> <td colspan=2 align=center> <input type=submit name=acao value=Incluir class=texto_preto /> </td> </tr> </table> </form>"; ############### # Layout geral ############### $html = "\n <html> <head> <title>Cadastro</title> <style type=text/css> .texto_branco { font:bold 12px Arial; color:#FFF; } .texto_preto { font:bold 12px Arial; color:#000; } </style> </head> <body> ".$html_inclusao." ".$html_busca." </body> </html>"; print ($html); ?>
×
×
  • Criar Novo...