Ir para conteúdo
Fórum Script Brasil

Leonardo Bueno

Membros
  • Total de itens

    3
  • Registro em

  • Última visita

Tudo que Leonardo Bueno postou

  1. Pessoal valeu pela ajuda.... Com os comentários consegui resolver o problema a a página está noar. Se quiserem dar uma olhada podem visitar: FUNDIMISA Obrigado e nos vemos por aí..... Leonardo Bueno
  2. Serra, Primeiramente agradeço pela atenção. Seguindo o teu comentário verifiquei o arquivo db.php e realmente consta esses comando, abaixo segue o código para que possa verificar o seu conteúdo. <?php $the_include = "db"; switch($dbtype) { case 'MySQL': include("".$the_include."/mysql.php"); break; case 'mysql4': include("".$the_include."/mysql4.php"); break; case 'postgres': include("".$the_include."/postgres7.php"); break; case 'mssql': include("".$the_include."/mssql.php"); break; case 'oracle': include("".$the_include."/oracle.php"); break; case 'msaccess': include("".$the_include."/msaccess.php"); break; case 'mssql-odbc': include("".$the_include."/mssql-odbc.php"); break; case 'db2': include("".$the_include."/db2.php"); break; } $db = new sql_db($dbhost, $dbuname, $dbpass, $dbname, false); if(!$db->db_connect_id) { message_die(CRITICAL_ERROR, "Could not connect to the database"); } ?> No aguardo de um retorno, Leonardo Bueno
  3. Boa tarde pessoal sou novo no fórum e novo no mundo PHP. Trabalho em uma empresa como responsável pelo Depto de TI (há 4 meses) e o meu Funcionário que era responsável por manutenção de nosso site e de nossa intranet foi desligado da empresa, me deixando com um grande pepino para resolver. Nós temos dois domínios 01 .com e outro .com.br, meu diretor me solicitou para colcoar um site que estava em desenvolvimento por esse funcionário no ar, até tudo bem, mas quando o coloquei no ar me deu um erro na página (em nossa intranet o mesmo funciona normalmente). O nosso site em questão é o www.fundimisa.com Segue abaixo o erro que aparece. Fatal error: Call to undefined function: message_die() in /home/fundicao/public_html/db/db.php on line 43 Mesmo não entendendo muito de PHP imagino que erro seja algum cóidgo errado na linha 43, abaixo segue o código da página. <html> <head> <title>FUNDIMISA FUNDIÇÃO E USINAGEM LTDA</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <LINK REL="StyleSheet" HREF="styles.css" TYPE="text/css"> <script language="JavaScript" type="text/JavaScript"> <!-- function MM_swapImgRestore() { //v3.0 var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc; } function MM_preloadImages() { //v3.0 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array(); var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++) if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}} } function MM_findObj(n, d) { //v4.01 var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n]; for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); if(!x && d.getElementById) x=d.getElementById(n); return x; } function MM_swapImage() { //v3.0 var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3) if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];} } //--> </script> </head> <body bgcolor="#FFFFFF" background="images/bg.jpg"leftmargin="0" topmargin="0" marginwidth="0"onLoad="MM_preloadImages('images/index9-2.jpg','images/index10-2.jpg','images/index11-2.jpg','images/index12-2.jpg','images/index13-2.jpg','images/index3-2.jpg','images/index4-2.jpg')"> <table width="770" height="100%" border="0" align="center" cellpadding="0" cellspacing="0" > <tr> <td><table width="100%" border="0" cellspacing="0" cellpadding="0" align="center" bgcolor="#FFFFFF" bordercolor="#ffffff" style="background-position:top left; background-repeat:repeat-x; border-left-style: solid; border-left-width: 2; border-right-style: solid; border-right-width: 2; border-top-style: solid; border-top-width: 2; border-bottom-style: solid; border-bottom-width: 2"> <tr> <td width="334"> <table width="100" height="100" border="0" cellpadding="0" cellspacing="0"> <tr> <td> <table width="100" border="0" cellspacing="0" cellpadding="0"> <tr> <td><img src="images/index1.jpg" width="334" height="330"></td> </tr> <tr> <td><img src="images/index8.jpg" width="334" height="35"></td> </tr> <tr> <td><a href="iframe.php?pag=empresa" target="principal" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image8','','images/index9-2.jpg',1)"><img src="images/index9.jpg" name="Image8" width="334" height="31" border="0"></a></td> </tr> <tr> <td><a href="iframe.php?pag=qualidade" target="principal" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image9','','images/index10-2.jpg',1)"><img src="images/index10.jpg" name="Image9" width="334" height="36" border="0"></a></td> </tr> <tr> <td><a href="iframe.php?pag=meio-ambiente" target="principal" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image10','','images/index11-2.jpg',1)"><img src="images/index11.jpg" name="Image10" width="334" height="35" border="0"></a></td> </tr> <tr> <td><a href="iframe.php?pag=responsabilidade-social" target="principal" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image11','','images/index12-2.jpg',1)"><img src="images/index12.jpg" name="Image11" width="334" height="35" border="0"></a></td> </tr> <tr> <td><a href="iframe.php?pag=localizacao" target="principal" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image12','','images/index13-2.jpg',1)"><img src="images/index13.jpg" name="Image12" width="334" height="34" border="0"></a></td> </tr> </table> </td> </tr> </table> </td> <td valign="top"> <table width="100%" height="100%" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td><img src="images/index2.jpg" width="222" height="68"></td> <td><a href="index.php" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image13','','images/index3-2.jpg',1)"><img src="images/index3.jpg" name="Image13" width="90" height="68" border="0"></a></td> <td><a href="?pag=contatenos" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image14','','images/index4-2.jpg',1)"><img src="images/index4.jpg" name="Image14" width="124" height="68" border="0"></a></td> </tr> <tr> <td colspan="3"><img src="images/index5.jpg" width="436" height="56"></td> </tr> <tr> <td colspan="3"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="30" height="100%"><img src="images/index6.jpg" width="30" height="412"></td> <td bgcolor="#DEDEDD" valign="top"> <div style="padding-bottom:20px"> <iframe name="principal" frameborder="0" width="400" height="392" src='iframe.php?pag=<? echo $pag; ?>' scrolling="auto"></iframe> </div> </td> </tr> </table></td> </tr> </table> </td> </tr> </table> <div align="right"><font size="2"><strong>desenvolvido por: <a href="mailto:jedson@fundimisa.com.br">Jedson Alan Wagner</a></strong></font></div></td> </tr> </table> </body> </html> SE alguém PUDER ME AJUDAR FICAREI MUITO GRATO. Desde já agradeço a atenção. Leonardo Bueno
×
×
  • Criar Novo...