echo " <META HTTP-EQUIV=REFRESH CONTENT='10;>";
- Fórum WMO
- → WellingtonSG's Content
WellingtonSG's Content
There have been 20 items by WellingtonSG (Search limited from 19/04/2023)
#949050 Como Fazer Refresh Numa Pagina Em Php
Posted by WellingtonSG on 03/12/2008, 19:58 in PHP
#948268 Dificuldade Em Inserir Dados No Bd
Posted by WellingtonSG on 28/11/2008, 05:27 in PHP
O nome da tabela é cadastro e não o nome do banco de dados.
Mas o que você não entendeu? É só colocar a tabela SQL e alterar o config.php
Explique melhor o que você não entende.
#947207 Problema Com Code
Posted by WellingtonSG on 19/11/2008, 19:14 in Blogs & Flogs
Já fiz isso, mas veja como fico:
E está o código com
Obrigado
#946556 Problema Com Code
Posted by WellingtonSG on 15/11/2008, 00:05 in Blogs & Flogs
Instalei o WP certinho, mas na hora de postar um código PHP não tem o botão de CODE.
Como faço pra inserir códigos no WP.
Obrigado
#938643 Erro Com Session
Posted by WellingtonSG on 26/09/2008, 10:49 in PHP
grava_db.php
<?php include "config.php"; $login = $_POST['login']; $senha = $_POST['senha']; $conexao = "INSERT INTO login (id,login,senha) VALUES ('$login' ,'$senha')"; mysql_close(); echo "Salvo com sucesso<br />"; ?> <a href="index.php">Voltar</a>
Muito obrigado
#938635 Erro Com Session
Posted by WellingtonSG on 26/09/2008, 10:12 in PHP
Estou usando session para uma área restrita e deu esse erro:
Parse error: syntax error, unexpected '=' in C:\wamp\www\senha\config.php on line 5
Aqui o código:
<?php include "config.php"; $login = $_POST['login']; $senha = $_POST['senha']; $conexao = mysql_query("SELECT * FROM usuarios where login = '$login' AND senha = '$senha'"); if(mysql_num_rows($conexao) == 1){ $_SESSION['login_session'] = $login; $_SESSION['senha_session'] = $senha; include "pagina_principal.php"; }else{ include "index.php"; } ?>
Obrigado pela ajuda
#937334 Erro Ao Editar Usuarios
Posted by WellingtonSG on 18/09/2008, 01:56 in PHP
exemplo: editar.php?id=3 seria pra editar o número 3, mas o form fica em branco, aqui o código:
<?php require_once "config.php"; $conexao = mysql_connect ($servidor, $usuario, $senha)or die ("Impossivel de Conectar Servidor Mysql"); mysql_select_db ($nomebase , $conexao) or die ("Impossivel de abrir banco Mysql"); $id_usuarios = $_GET['id']; $SQL = mysql_query("SELECT id,nome,email,senha,mensagem FROM usuarios order by id DESC") or die(mysql_error()); while ($linha = mysql_fetch_assoc($SQL)) { { $id = $row['id']; $nome = $row['nome']; $email = $row['email']; $senha = $row['senha']; $mensagem = $row['mensagem']; } ?> <!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=iso-8859-1" /> <title>Editar Usuarios</title> <style type="text/css"> <!-- .style1 { font-size: 10px; font-weight: bold; font-family: Verdana, Arial, Helvetica, sans-serif; } --> </style> </head> <body> <form action="edit_done.php" method="post" name="form1"> <table width="257" align="center" cellpadding="0" cellspacing="0"> <tr> <td><span class="style1">Nome:</span></td> <td><div align="center"> <input name="nome" type="text" id="nome" value="<?=$nome?>" /> </div></td> </tr> <tr> <td><span class="style1">Email:</span></td> <td><div align="center"> <input name="email" type="text" id="email" value="<?=$email?>" /> </div></td> </tr> <tr> <td><span class="style1">Telefone:</span></td> <td><div align="center"> <input name="telefone" type="text" id="telefone" value="<?=$telefone?>" /> </div></td> </tr> <tr> <td><span class="style1">Senha</span>:</td> <td><div align="center"> <input name="senha" type="password" id="senha" value="<?=$senha?>" /> </div></td> </tr> <tr> <td><span class="style1">Mensagem:</span>:</td> <td> <div align="center"> <textarea name="mensagem" cols="15" rows="5" id="mensagem"><?=$mensagem?> </textarea> </div></td> </tr> <tr></tr> </table> <table width="476" align="center" cellpadding="0" cellspacing="0"> <tr> <td width="369"> <div align="right"> <input type="submit" name="Submit3" value="Editar" /> <input type="reset" name="Submit22" value="Limpar" /> </div></td> </tr> </table> </form> </body> </html> <? } ?>
Obrigado a todos
#935995 Analise E Desenvolvimento De Sistemas
Posted by WellingtonSG on 10/09/2008, 22:21 in Mercado de Trabalho
Obrigado pela dica, vou conversar com a Coordandora do curso e ver quais um pouco mais sobre o mesmo.
Grande abraço
#935074 Host Gratuito
Posted by WellingtonSG on 04/09/2008, 19:43 in Dúvidas Gerais
Só que ele não fica legal em resoluções maiores que 1204 x 768.
E no menu se não tiver um plugin instalado toda hora ele abri o media player.
Abraços
#935071 Erro Ao Gravar Dados No Formulario
Posted by WellingtonSG on 04/09/2008, 19:28 in PHP
e deu certo
Obrigado pessoal, só uma coisa, ele cadastro mas não deu o Alerta de Cadastro Feito com Sucesso, qual pode ser o erro?
#935069 Erro Ao Gravar Dados No Formulario
Posted by WellingtonSG on 04/09/2008, 19:13 in PHP
<? $db = mysql_connect("dbmy0003.whservidor.com","infohelp_1","123456"); $dados = mysql_select_db("infohelp_1"); ?>
#935047 Erro Ao Gravar Dados No Formulario
Posted by WellingtonSG on 04/09/2008, 18:14 in PHP
Eu uso o Dreamweaver 8
#935044 Erro Ao Gravar Dados No Formulario
Posted by WellingtonSG on 04/09/2008, 18:01 in PHP
Estou tentando gravar dados no banco de dados, mas o formulario não grava e da o erro,
Parse error: syntax error, unexpected ';' in /home/infohelp/public_html/comandos/principal.php on line 15
Aqui meu código:
<!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=iso-8859-1" /> <title>Untitled Document</title> </head> <link href="css/css2.css" rel="stylesheet" type="text/css" /> <? include "config.php"; $nome = $_POST["nome"]; $email = $_POST["email"]; $cidade = $_POST["cidade"]; $mensagem = $_POST["mensagem"]; if($_GET['btn'] == "gravar";){ $cadastrar = mysql_query("INSERT INTO comandos_sql (nome, email, cidade, mensagem) VALUES ('$nome','$email','$cidade','$mensagem',)",$db)or die(mysql_error());; if ($cadastar ==1){ print" <meta HTTP EQUIVE=REFESH CONTENT='0; URL=principal.php'> <script type=\"text/javascript\"> alert(\"Cadastro Feito com Sucesso.\"); </script> "; } ?> <form id="form1" name="form1" method="post" action="?btn=gravar"> <table width="321" cellpadding="3" cellspacing="3"> <tr> <td width="69">Nome:</td> <td width="229"><input name="nome" type="text" id="nome" /></td> </tr> <tr> <td>Email:</td> <td><input name="email" type="text" id="email" /></td> </tr> <tr> <td>Cidade:</td> <td><input name="cidade" type="text" id="cidade" /></td> </tr> <tr> <td valign="top">Mensagem:</td> <td><p> <textarea name="mensagem" cols="35" rows="5" id="mensagem"></textarea> </p> <p> <input name="Submit" type="submit" id="Submit" value="gravar" /> <input type="reset" name="Submit2" value="Deletar!" /> </p></td> </tr> </table> </form> </div> </body> </html>
#934530 Analise E Desenvolvimento De Sistemas
Posted by WellingtonSG on 02/09/2008, 13:42 in Mercado de Trabalho
Estou pensando em fazer o curso de Analise e Desenvolvimento de Sistemas
Mas minhas dúvidas são:
Em qual área posso atuar?
Vale a pena sendo que é um curso tecnologo?
Preciso saber programar?
E dicas serão bem vindas.
Grande abraço
#932057 Query String
Posted by WellingtonSG on 20/08/2008, 17:59 in PHP
Obrigado
#931928 Query String
Posted by WellingtonSG on 20/08/2008, 04:43 in PHP
Retornou esse erro:
Parse error: syntax error, unexpected T_ELSEIF in /home/well/public_html/scripts/qstring/act.php on line 5
#931886 Query String
Posted by WellingtonSG on 19/08/2008, 21:02 in PHP
Achei um tutorial, mas estou com uma dúvida:
Criei os arquivos act.php, home.php, well.php, contato.php e suporte.php
A Query funciona somente no home.ph e no contato.php
Aqui o arquivo act.php
<?php @$act = $_REQUEST['act']; if ($act == "well" ) { $nextPage = "well.php"; } if ($act == "suporte" ) { $nextPage = "suporte.php"; } if ($act == "contato" ) { $nextPage = "contato.php"; } if( (isset($nextPage)) and (file_exists($nextPage)) ) { include($nextPage); } else { include 'home.php'; } ?>
Qual o erro?
Obrigado
#931752 Busca Em Ajax
Posted by WellingtonSG on 19/08/2008, 10:57 in Ajax
Upei pro meu host e funcionando 100%
Só como tiro esse alert:
#931748 Busca Em Ajax
Posted by WellingtonSG on 19/08/2008, 10:39 in Ajax
Erro no processamento de XML: nenhum elemento encontrado Posição: http://localhost/busca/buscaBD.php?var=sono&submit=Buscar Número da linha 10, coluna 21:No database selected
E como removo esse alert citado acima?
obrigado
#931720 Query String
Posted by WellingtonSG on 19/08/2008, 08:42 in PHP
Estou montando um portofólio, e gostaria de usar Query String nele.
Tenho as páginas:
index.php
sobre.php
portofolio.php
servicos.php
contato.php
E quero deixar os links assim:
index.php?act=home
index.php?act=sobre
index.php?act=portofolio
index.php?act=servicos
index.php?act=contato
Obrigado pessoal
- Fórum WMO
- → WellingtonSG's Content
- Privacy Policy
- Regras ·