Erro Em Site
#1
Posted 17/02/2005, 16:31
Parse error: parse error, unexpected '}' in /home/temdtudo/public_html/temdtudo/classes/conexao.class.php on line 53
grato
Visite a http://www.hostall.com.br
Domínios por R$ 35,90/ano
com painel de controle proprío
#2
Posted 17/02/2005, 16:38
#3
Posted 17/02/2005, 16:45
Visite a http://www.hostall.com.br
Domínios por R$ 35,90/ano
com painel de controle proprío
#4
Posted 17/02/2005, 16:45
#5
Posted 17/02/2005, 16:48
class classe_conexao{
var $host ;
var $user ;
var $senha ;
var $db;
var $result_conexao ;
var $result_query ;
function classe_conexao(){
$this->inicializar_atributos();
}
}
function inicializar_atributos(){
$this->host = "localhost";
$this->user = "senha";
$this->senha = "nomedb";
$this->db = "nomedb";
}
// $this->host = "localhost";
// $this->user = "usuario";
// $this->senha = "senha";
// $this->db = "nome";
}
function abrir_conexao(){
$this->result_conexao = mysql_connect("$this->host", "$this->user", "$this->senha")
// $this->result_conexao = mysql_connect("$this->host", "$this->user")
or die ("Não foi possível estabelecer uma conexão com o Banco de Dados: " . mysql_error());
mysql_select_db("$this->db");
}
function executar_query($sql){
$this->result_query = mysql_query("$sql");
return $this->result_query;
}
function fechar_conexao(){
// mysql_free_result($this->result_query);
mysql_close ($this->result_conexao);
}
function retorna_numero_de_registros($resultado){
$registros = mysql_num_rows($this->result_query);
return $registros;
}
}
?>
Edição feita por: infonet, 17/02/2005, 16:49.
Visite a http://www.hostall.com.br
Domínios por R$ 35,90/ano
com painel de controle proprío
#6
Posted 17/02/2005, 17:00
<? class classe_conexao{ var $host; var $user; var $senha; var $db; var $result_conexao; var $result_query; function classe_conexao(){ $this->inicializar_atributos(); } } function inicializar_atributos(){ $this->host = "localhost"; $this->user = "senha"; $this->senha = "nomedb"; } function abrir_conexao(){ $this->result_conexao = mysql_connect("$this->host", "$this->user", "$this->senha") or die ("Não foi possível estabelecer uma conexão com o Banco de Dados: " . mysql_error()); mysql_select_db("$this->db"); } function executar_query($sql){ $this->result_query = mysql_query("$sql"); return $this->result_query; } function fechar_conexao(){ mysql_close ($this->result_conexao); } function retorna_numero_de_registros($resultado){ $registros = mysql_num_rows($this->result_query); return $registros; } ?>
Tenta agora
#7
Posted 17/02/2005, 17:29
Warning: iniciar(): Unable to access ./delegate/delcadastrarcontador.php in /home/temdtudo/public_html/temdtudo/index.php on line 42
Warning: iniciar(./delegate/delcadastrarcontador.php): failed to open stream: No such file or directory in /home/temdtudo/public_html/temdtudo/index.php on line 42
Fatal error: iniciar(): Failed opening required './delegate/delcadastrarcontador.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/temdtudo/public_html/temdtudo/index.php on line 42
Visite a http://www.hostall.com.br
Domínios por R$ 35,90/ano
com painel de controle proprío
#8
Posted 18/02/2005, 02:15
#9
Posted 18/02/2005, 16:51
Parse error: parse error, unexpected '}' in /home/temdtudo/public_html/temdtudo/classes/conexao.class.php on line 53
Visite a http://www.hostall.com.br
Domínios por R$ 35,90/ano
com painel de controle proprío
#10
Posted 18/02/2005, 18:54
Poste o código inteiro, mas você voltou ao código anterior, né?o erro voltou para isso agora :::
Parse error: parse error, unexpected '}' in /home/temdtudo/public_html/temdtudo/classes/conexao.class.php on line 53
#11
Posted 18/02/2005, 19:47
class classe_conexao{
var $host ;
var $user ;
var $senha ;
var $db;
var $result_conexao ;
var $result_query ;
function classe_conexao(){
$this->inicializar_atributos();
}
}
function inicializar_atributos(){
$this->host = "localhost";
$this->user = "meulogin";
$this->senha = "minhasenha";
$this->db = "meubanco";
}
// $this->host = "localhost";
// $this->user = "root";
// $this->senha = "root";
// $this->db = "nomedodb";
}
function abrir_conexao(){
$this->result_conexao = mysql_connect("$this->host", "$this->user", "$this->senha")
// $this->result_conexao = mysql_connect("$this->host", "$this->user")
or die ("Não foi possível estabelecer uma conexão com o Banco de Dados: " . mysql_error());
mysql_select_db("$this->db");
}
function executar_query($sql){
$this->result_query = mysql_query("$sql");
return $this->result_query;
}
function fechar_conexao(){
// mysql_free_result($this->result_query);
mysql_close ($this->result_conexao);
}
function retorna_numero_de_registros($resultado){
$registros = mysql_num_rows($this->result_query);
return $registros;
}
}
?>
Visite a http://www.hostall.com.br
Domínios por R$ 35,90/ano
com painel de controle proprío
#12
Posted 19/02/2005, 14:24
<?
class classe_conexao{
var $host ;
var $user ;
var $senha ;
var $db;
var $result_conexao ;
var $result_query ;
function classe_conexao() {
$this->inicializar_atributos();
}
function inicializar_atributos(){
$this->host = "localhost";
$this->user = "meulogin";
$this->senha = "minhasenha";
$this->db = "meubanco";
}
function abrir_conexao(){
$this->result_conexao = mysql_connect($this->host, $this->user, $this->senha)
or die ("Não foi possível estabelecer uma conexão com o Banco de Dados: " . mysql_error());
mysql_select_db($this->db);
}
function executar_query($sql){
$this->result_query = mysql_query($sql);
return $this->result_query;
}
function fechar_conexao(){
mysql_close ($this->result_conexao);
}
function retorna_numero_de_registros($resultado){
$registros = mysql_num_rows($this->result_query);
return $registros;
}
}
?>
[...] ó terra, terra, terra; ouve a palavra do Senhor. — Jeremias 22:29
#13
Posted 19/02/2005, 16:04
Warning: iniciar(): Unable to access ./delegate/delcadastrarcontador.php in /home/temdtudo/public_html/temdtudo/index.php on line 42
Warning: iniciar(./delegate/delcadastrarcontador.php): failed to open stream: No such file or directory in /home/temdtudo/public_html/temdtudo/index.php on line 42
Fatal error: iniciar(): Failed opening required './delegate/delcadastrarcontador.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/temdtudo/public_html/temdtudo/index.php on line 42
Visite a http://www.hostall.com.br
Domínios por R$ 35,90/ano
com painel de controle proprío
#14
Posted 19/02/2005, 16:20
2º Erro - Falta de arquivo.
3º Erro - Não conseguiu abrir o arquivo delcadastrarcontador.php.
#15
Posted 19/02/2005, 16:55
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, webmaster@temdtudo.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Visite a http://www.hostall.com.br
Domínios por R$ 35,90/ano
com painel de controle proprío
1 user(s) are reading this topic
0 membro(s), 1 visitante(s) e 0 membros anônimo(s)