Jump to content


Inu_yasha

Member Since 20/03/2005
Offline Last Active 17/09/2015, 12:39
-----

Topics I've Started

Erros Ao Incluir...

04/09/2005, 10:10

Olá, eu estou a incluir uns arquivos, porem da erro de php.
o código do que está incluindo:
<link href="style.css" rel="stylesheet" type="text/css">
<?
include ("membros.php");
include ("u.php");
include ("tpost.php");
include ("total.php");
?> 
<br><br>

Agora, para provar que não há erro nos outros arquivos:
Página que inclui e mostra erros
membros.php
u.php
t.post.php
total.php
somente da erro na e.php, no resto não dá... porque será?

Can't Connect...

02/09/2005, 22:16

Bem vindo ao phpMyAdmin 2.5.6


phpMyAdmin tried to connect to the MySQL server, and the server rejected the connection. You should check the host, username and password in config.inc.php and make sure that they correspond to the information given by the administrator of the MySQL server.

Erro

Mensagens do MySQL :


#2003 - Can't connect to MySQL server on 'localhost' (10061)

[Documentação]

não consigo acessar meu PMA, da isso acima... e antes tava normal (ontem pelo menos O.o)

Contador Em Php

29/08/2005, 13:54

Olá, estava testando meu contador de php e deu erro:

<?
include "config.php";

$counter = mysql_query("SELECT * FROM $tabela ORDER BY $s DESC", $db);

if ( $counter == 1 ) {
$cadastrar = mysql_query("UPDATE $tabela SET count + 1 WHERE s = '$s'", $db);
$x = mysql_fetch_array($counter);
$coun = $x["count"];
echo " $coun ";
} else {
$cadastrar = mysql_query("INSERT INTO $tabela (s, count) VALUES ('$s', '1')", $db);
$x = mysql_num_rows($counter);
$coun = $x["count"];
echo " $coun ";
}
?>
erro de numrows na linha 13...
$x = mysql_num_rows($counter);
ja tentei por o fetch array, mas deu erro...
alguma solucao?

Caracteres..

18/08/2005, 21:02

Olá, visitando um sistyema de ask meu, que anteontem estava normal, eu verifiquei que os ã, ô, etc estão em formato estranho. para verem:
http://darkness.6te.net/ask/faq.php
o que eu faço para arrumar?

If

16/08/2005, 17:03

<?php

include "config.php";

$nome = $_POST['nome'];
$email = $_POST['email'];

if ($opcao == 'cad') {
if( eregi('^[-!#$%&\'*+\\./0-9=?A-Z^_`a-z{|}~]+'. '@'. '[-!#$%&\'*+\\./0-9=?A-Z^_`a-z{|}~]+\.'. '[-!#$%&\'*+\\./0-9=?A-Z^_`a-z{|}~]+$', $email) )
{
   $cadastrar = mysql_query("INSERT INTO news (nome, email) VALUES ('$nome', '$email')", $db);
}

if( $email )
{
   echo "<script>window.alert('Email cadastrado com sucesso.'); </script>";
   echo "<script>window.location = 'javascript:history.go(-1);'</script>";
}
else
{
   echo "<script>window.alert('Houve um erro ao tentar cadastrar seu email. Tente novamente!'); </script>";
   echo "<script>window.location = 'javascript:history.go(-1);'</script>";
}
}
if ($opcao == 'del') {
$del = mysql_query("DELETE from news (nome, email) VALUES ('$nome', '$email')", $db);
}
?>
eu ja tentei d td, os campos, tem o mesmo nome, mas a pag fik em branco...
pag q cadastra:
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" href="style.css" type="text/css">

</head>
<body>
<form action="cad.php" method="post">
  <table width="100%" border="0" cellspacing="2" cellpadding="2">
    <tr> 
      <td width="12%"><font size="1" face="Verdana">Seu Nome:</font></td>
      <td width="88%"><font size="1" face="Verdana"> 
        <input name="nome" type="text" id="nome" class="f1">
        </font></td>
    </tr>
    <tr> 
      <td><font size="1" face="Verdana">Seu E-mail:</font></td>
      <td><font size="1" face="Verdana"> 
        <input name="email" type="text" id="email" class="f1">
        </font></td>
    </tr>
	<tr>
	<td>&nbsp;</td>
	<td><input name="opcao" type="radio" value="cad"><font size="2">Cadastrar</font></td>
	</tr>
		<tr>
	<td>&nbsp;</td>
	<td><input name="opcao" type="radio" value="del"><font size="2">Descadastrar</font></td>
	</tr>
    <tr> 
      <td>&nbsp;</td>
      <td><input type="submit" name="Submit" value="Cadastrar" class="f1"></td>
    </tr>
  </table>
</form>
</body>
</html>
faz um mes q n consigo, nem com a documentacao do php eu consegui...

IPB Skin By Virteq