sim já vi e revi não sei o que esta acontecendo você quer dar uma olhada no bd do config  config.php  <? // conexão com o banco if ($_SERVER['REMOTE_ADDR'] != "127.0.0.1"){ //echo "server:". $_SERVER['REMOTE_ADDR']. "/ linha 4 no config.php"; 	$server = "localhost";   	$user = "test";   	$senha = "123456"; 	$banco = "spwd_diolho";	 } else { //echo "server: LOCAL / linha 10 no config.php"; 	$server = "localhost";   	$user = "root";   	$senha = ""; 	$banco = "spwd_diolho"; }  $conexao = mysql_connect("$server", "$user", "$senha"); $db = mysql_select_db("$banco"); // termina conexão com o banco  $pasta = "estrutura/galeria";  $sql = mysql_query("SELECT * FROM config WHERE id=1'"); while ($linha = mysql_fetch_array($sql)) { $tsite = $linha[tsite]; 				// nome do site $usite = $linha[usite]; 				// url do site, ex: http://www.seusite.com.br/galeria/ $fonte = $linha[fonte]; 				// fonte do site $tfonte = $linha[tfonte]; 			    // tamanho da fonte usada $ttitulo = $linha[ttitulo];			    // tamanho dos titulos do site  $coronmouse = $linha[coronmouse];		// cor quando passar o mouse em cima dos links #999999 $cortexto = $linha[cortexto]; 		    // cor do texto $corcelula1 = $linha[corcelula1];		// cor dacelula 1 $corcelula2 = $linha[corcelula2];    	// cor da celula 2 $corfundosite = $linha[corfundosite];   // cor de fundo do site $qts_thumbs = $linha[qts_thumbs];       // Total de fotos que será exibido do lado esquerdo $qts_colunas = $linha[qts_colunas];     // total de colunas que será exibido $qts_ultimos = $linha[qts_ultimos];     // total de eventos que ficarão nas ultimas coberturas $img_fundo = $linha[img_fundo];         $loginho = $linha[loginho]; $versao = "v4.0"; }  ?>  <head>  <script language="JavaScript1.2"> var URLSite = window.location.href; var TituloSite = document.title; function addfav(){ if (document.all) window.external.AddFavorite(URLSite,TituloSite); } </SCRIPT> <meta http-equiv="pragma" content="no-cache"> <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> <title><? echo $tsite?></title>  <style type="text/css"> body { 	background-image: url(<?=$usite?>images/bg_body.gif); 	background-color: <?=$corfundosite?>; 	margin-left: 0px; 	margin-top: 0px; 	margin-right: 0px; 	margin-bottom: 0px; 	font-family: <?=$fonte?>; 	font-size: <?=$tfonte?>; 	color: <?=$cortexto?>; }  body,td,th { 	margin-left: 0px; 	margin-top: 0px; 	margin-right: 0px; 	margin-bottom: 0px; 	font-family: <?=$fonte?>; 	font-size: <?=$tfonte?>; 	color: <?=$cortexto?>; }  .branco {color: #FFFFFF}  .pequeno { 	font-size: 8px; 	color: #999999; }  .titulos { 	font-size: <?=$tfonte?>; 	color:  <?=$coronmouse?>; }  a:link, a:active, a:visited { color: <?=$cortexto?>; text-decoration: none; }  a:hover { color:  <?=$coronmouse?>; text-decoration: underline; }  .input { 	border: 1px solid #333333; 	font-family: <?=$fonte?>; 	font-size: <?=$tfonte?>; 	color: <?=$cortexto?>; } </style> </HEAD>   <body>  <script src="<? echo $usite?>janelas_popup.js" language="JavaScript"></script>      conexao.php  <? // conexão com o banco if ($_SERVER['REMOTE_ADDR] != "127.0.0.1"){ //echo "server:". $_SERVER['REMOTE_ADDR']. "/ linha 4 no config.php"; 	$server = "localhost";   	$user = "test";   	$senha = "123456"; 	$banco = "spwd_diolho";	 } else { //echo "server: LOCAL / linha 10 no config.php"; 	$server = "localhost";   	$user = "root";   	$senha = ""; 	$banco = "spwd_diolho"; }  $conexao = mysql_connect("$server", "$user", "$senha"); $db = mysql_select_db("$banco"); // termina conexão com o banco  $pasta = "estrutura/galeria";  $sql = mysql_query("SELECT * FROM config WHERE id='1'"); while ($linha = mysql_fetch_array($sql)) { $tsite = $linha[tsite]; 				// nome do site $usite = $linha[usite]; 				// url do site, ex: http://www.seusite.com.br/galeria/ $fonte = $linha[fonte]; 				// fonte do site $tfonte = $linha[tfonte]; 			    // tamanho da fonte usada $ttitulo = $linha[ttitulo];			    // tamanho dos titulos do site  $coronmouse = $linha[coronmouse];		// cor quando passar o mouse em cima dos links #999999 $cortexto = $linha[cortexto]; 		    // cor do texto $corcelula1 = $linha[corcelula1];		// cor dacelula 1 $corcelula2 = $linha[corcelula2];    	// cor da celula 2 $corfundosite = $linha[corfundosite];   // cor de fundo do site $qts_thumbs = $linha[qts_thumbs];       // Total de fotos que será exibido do lado esquerdo $qts_colunas = $linha[qts_colunas];     // total de colunas que será exibido $qts_ultimos = $linha[qts_ultimos];     // total de eventos que ficarão nas ultimas coberturas $img_fundo = $linha[img_fundo];         $loginho = $linha[loginho]; $versao = "v4.0"; }  ?>  <head> <meta http-equiv="pragma" content="no-cache"> <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> <title><? echo $tsite?></title>  <style type="text/css"> body { 	background-color: <?=$corfundosite?>; 	margin-left: 0px; 	margin-top: 0px; 	margin-right: 0px; 	margin-bottom: 0px; 	font-family: <?=$fonte?>; 	font-size: <?=$tfonte?>; 	color: <?=$cortexto?>; }  body,td,th { 	margin-left: 0px; 	margin-top: 0px; 	margin-right: 0px; 	margin-bottom: 0px; 	font-family: <?=$fonte?>; 	font-size: <?=$tfonte?>; 	color: <?=$cortexto?>; }  .branco {color: #FFFFFF}  .pequeno { 	font-size: 8px; 	color: #999999; }  .titulos { 	font-size: <?=$ttitulo?>; 	color:  <?=$coronmouse?>; }  a:link, a:active, a:visited { color: <?=$cortexto?>; text-decoration: none; }  a:hover { color:  <?=$coronmouse?>; text-decoration: underline; }  .input { 	height: 14; 	width: 70; 	border: 1px solid #333333; 	font-family: <?=$fonte?>; 	font-size: <?=$tfonte?>; 	color: <?=$cortexto?>; } </style> </HEAD>  <body> <script src="<? echo $usite?>janelas_popup.js" language="JavaScript"></script>   ve ai meu amigo