Jump to content
Fórum Script Brasil
  • 0

Fatal Erro


Almir_Mass

Question

Verfica a existência dessa "função" (Método) porque essa função não é nativa do PHP, foi criada por quem fez o script...

Abraço!

Alguém pode me ajudar, o código abaixo é pra estar correto mais esta dando fatal erro, o que pode estar acontecendo

Fatal error: Call to a member function MoveNext() on a non-object in /home/sites/corupafm.com.br/web/site/galeriadefotos.php on line 141

<?php

require_once("../includes/connect.inc.php");

require_once("../includes/functions.inc.php");

?>

<html>

<head>

<title>Corup&aacute; FM - 87.9</title>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

<meta http-equiv="Pragma" content="no-cache" />

<meta name="keywords" content="Corupá FM, Corupá, FM, Rádio" />

<meta name="title" content="Corupá FM - 87.9" />

<meta name="description" content="www.corupafm.com.br" />

<meta name="robots" content="index,follow" />

<meta name="robots" content="noarchive" />

<meta http-equiv="content-language" content="pt" />

<meta name="author" content="Jeferson Jacob - Gu@pos" />

<meta name="reply-to" content="guapos@guapos.com.br" />

<meta http-equiv="refresh" content="200">

<link rel="SHORTCUT ICON" href="../favicon.ico" type="image/x-icon">

<link href="estilos.css" rel="stylesheet" type="text/css">

<script type="text/javascript" src="js/swfobject.js"></script>

<script type="text/javascript" src="js/funcoes.js"></script>

</head>

<body style="margin:0px;">

<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0" style="background-image:url(imagens/bg-pgs.jpg); background-position:top; background-repeat:repeat-x; background-color:#F0DFF1;">

<tr>

<td align="center" valign="top">

<table border="0" cellpadding="0" cellspacing="0" width="900">

<tr>

<td align="center" width="900" height="190">

<table border="0" cellpadding="0" cellspacing="0" width="900">

<tr>

<td width="310">

<div id="logo" align="center" style="width:310px; height:190px;"><a href="http://www.macromedia.com/go/getflashplayer">Clique AQUI e instale o flashplayer</a> para visualizar o conteúdo!</div>

<script type="text/javascript">

var s1 = new SWFObject('swf/logo.swf','ply','310','190','9','#FFFFFF');

s1.addParam('allowfullscreen','false');

s1.addParam('allowscriptaccess','always');

s1.addParam('width','900');

s1.addParam('wmode','transparent');

s1.addParam('height','250');

s1.addParam('flashvars','width=310, height=190');

s1.write('logo');

</script>

</td>

<td width="327" height="195" align="center" valign="middle" style="background-image:url(imagens/sup-noar.jpg); background-position:center; background-repeat:no-repeat;">

<?php include("inc.noar.php"); ?>

</td>

<td width="263" align="center" valign="middle"><a href="java script:popsem('player.php','340','200');"><img src="imagens/sup-aovivo.jpg" alt="Clique e ou&ccedil;a!" width="263" height="195" border="0"></a></td>

</tr>

</table>

</td>

</tr>

<tr>

<td align="center" height="62">

<table border="0" cellpadding="0" cellspacing="0" width="904">

<tr>

<td rowspan="7" style="width:2px; background-color:#2E1147;"></td>

<td style="height:60px; background-color:#2E1147;">

<?php include("inc.menu.php"); ?>

</td>

<td rowspan="7" style="width:2px; background-color:#2E1147;"></td>

</tr>

<tr>

<td height="180" style="background-color:#FFF;">

<div id="banners" align="center" style="width:900px; height:180px;"><a href="http://www.macromedia.com/go/getflashplayer">Clique AQUI e instale o flashplayer</a> para visualizar o conteúdo!</div>

<script type="text/javascript">

var s2 = new SWFObject('swf/banners.swf?file=banners.php&transition=lines&linkfromdisplay=true&linktarget=_blank&shownavigation=false&rotatetime=5&backcolor=0xFFFFFF&frontcolor=0xFFFFFF&lightcolor=0xFFFFFF&screencolor=0xFFFFFF&shuffle=true&wmode=transparent&width=900&height=180','plw','900','180','9','#FFFFFF');

s2.addParam('allowfullscreen','false');

s2.addParam('allowscriptaccess','always');

s2.addParam('width','900');

s2.addParam('wmode','transparent');

s2.addParam('height','180');

s2.addParam('flashvars','width=900, height=180, file=banners.php, transition=lines');

s2.write('banners');

</script>

</td>

</tr>

<tr>

<td height="8" style="background-color:#74528F;"></td>

</tr>

<tr>

<td height="15" style="background-color:#2E1147;"></td>

</tr>

<tr>

<td height="119" align="center" valign="top" class="fontepadraopreta" style="background-color:#FFF;">

<table width="900" height="69" border="0" cellpadding="0" cellspacing="0">

<tr>

<td width="5"></td>

<td width="600" valign="top" align="center">

<table border="0" cellpadding="0" cellspacing="0" width="890">

<tr>

<td height="8" valign="bottom"></td>

</tr>

<tr>

<td height="20" valign="bottom" class="destaques">GALERIA DE FOTOS</td>

</tr>

<tr>

<td height="5"></td>

</tr>

<tr>

<td align="center" class="fontepadraopreta">

<table border="0" cellpadding="0" cellspacing="0" width="850">

<tr>

<td><?php

if(empty($_REQUEST["pg"]))

$_REQUEST["pg"] = 1;

$qntReg = 6;

$sql = "SELECT * FROM equipe ORDER BY dataval DESC";

$bTotal = $conn->Execute($sql);

$inicio = ($_REQUEST["pg"]-1)*$qntReg;

$sql.= LIMIT ".$inicio.",".$qntReg;

$b = $conn->Execute($sql);

?></td>

<tr>

<td align="center"><?

while(!$b->EOF) {

$codgal = $b->fields["cdgal];

$sqlf = "SELECT cdfoto FROM foto WHERE cdgal='$codgal' ORDER BY RAND() LIMIT 1";

$f = $conn->Execute($sqlf);

?>

<table align="center" cellpadding="0" cellspacing="0" width="100%">

<tr>

<td width="95" align="left" valign="top"><a href="galeria.php?cdgal=<?=$b->fields["cdgal"]?>"> <img src=http://www.corupafm.com.br/site/fotos/<?=$b->fields["cdgal]?>/<?=$f->fields["cdfoto"]?>thumb.jpg" width=80" height="80" border="3" style="border-color:#1C1C1C; margin:3px; background-image:url(highslide/graphics/loader.white.gif); background-position:center; background-repeat:no-repeat;" title="Clique e confira as fotos!" alt="" /></a></td>

<td width="753" align="left" valign="middle"><table width="100%" border="0" align="left" cellpadding="0" cellspacing="0">

<td align="left" class="fontpadraop" valign="middle" style="line-height:14px;"><strong class="titulos-cinza">

<?=$b->fields["nmgal]?>

</strong></td>

</table>

</td>

</tr>

<tr>

<td height="4" colspan="2"></td>

<tr>

<td height="1" bgcolor="#CCCCCC" colspan="2"></td>

<tr>

<td height="4" colspan="2"></td>

</tr>

</table>

<?

$b->MoveNext();

}

?></td>

<tr>

<td align="center"><?php include("paginacao.php"); ?></td>

</tr>

</table></td>

</tr>

<tr>

<td height="8"></td>

</tr>

</table>

</td>

<td width="5"></td>

</tr>

</table>

</td>

</tr>

<tr>

<td height="2" align="center" valign="middle" class="fontepadraopreta" style="background-color:#2E1147;"></td>

</tr>

<tr>

<td height="155" align="center" valign="middle" class="fontepadraopreta" style="background-color:#C19DC3;">

<?php include("inc.rodape.php"); ?>

</td>

</tr>

<tr>

<td style="width:2px; background-color:#2E1147;"></td>

<td style="height:2px; background-color:#2E1147;" align="center" valign="middle"></td>

<td style="width:2px; background-color:#2E1147;"></td>

</tr>

</table>

</td>

</tr>

</table>

</td>

</tr>

</table>

</body>

</html>

<?php

$conn->Close();

?>

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Forum Statistics

    • Total Topics
      152.2k
    • Total Posts
      652k
×
×
  • Create New...