antiblock
Rodnia | Alpha & Omega
  • Chatbox

    You don't have permission to chat.
    Load More
  • 0
Sign in to follow this  
BasicExpert6

Parse Error: Syntax Error, Unexpected '.145' (T_Dnumber) [Site]

Question

Boas Comunidade,

 

                                 Estou com um pequeno problema a ligar a minha DataBank (MySQL) ao meu site CMS de metin2... O site, sem ser introduzida a MySQL, consegue mostrar as cenas normais, não conseguindo apenas aceder às funcionalidades que a minha MySQL permite (criar conta, aceder, etc...) Quando coloco o IP (Hamachi, pois servidor está ligado ao mesmo, atualmente), aparece o seguinte:   ( ! ) Parse error: syntax error, unexpected '.145' (T_DNUMBER) in C:\wamp\www\index.php on line 13

 

Linha 13 é a linha do index.php onde coloquei o IP...

 

Junto em anexo as imagens do Index.php + IP Hamachi, do Erro e se precisar de mais algo, deixem aí nos comentários...

 

 

Agradeço ajuda e resposta!

 

24m56k3.png

 

iqaji8.png

Share this post


Link to post
Share on other sites

19 answers to this question

  • 0

Pessoal, tenho a db do site completa? Com todos os separadores? O.o

 

2w1zkf8.png  

Share this post


Link to post
Share on other sites
antiblock
Elveron
  • 0

Substitui o teu codigo no inicio da index por este :

<?php
	error_reporting(0); 

	if(!file_exists('./inc/config.inc.php'))

	{header('Location: install.php');}
	
	session_name("m2hp");
	session_start();
	
	require("./inc/config.inc.php");
	require("./inc/rights.inc.php");
	require("./inc/functions.inc.php");
	

	$sqlHp = mysql_connect(SQL_HP_HOST, SQL_HP_USER, SQL_HP_PASS);
	$sqlServ = mysql_connect(SQL_HOST, SQL_USER, SQL_PASS);

	if(!is_resource($sqlServ) OR !is_resource($sqlHp)) {header( 'Location: ./down.html' ) ;}

    require("./inc/head.inc.php");

?>

Já não deve aparecer os warns de deprecated

Share this post


Link to post
Share on other sites
  • 0

Agradeço... Já sigo se resultou... :)

Share this post


Link to post
Share on other sites
  • 0

Mano, tu só me escondeste os erros... não me resolveste o problema :( eu não consigo nem registar, nem logar no site... vejo o ranking e isso (está ligado a DB), mas não regista... :S

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this