Usamos cookies para medir audiência e melhorar sua experiência. Você pode aceitar ou recusar a qualquer momento. Veja sobre o iMasters.
Olá pessoal, boa tarde!
Sou iniciante no PHP, estou fazendo um site experimental e qndo fiz a pagina onde aparecem os dados cadastrados para eventuais alterações e tentei visualizar deu o seguinte erro:
Fatal error: Class 'tNG_dispatcher' not found in C:\Users\ALEXANDRE\EasyPHP-5.3.8.1\www\administracao\filhotes_cadastrados.php on line 42
Código:
<?php require_once('../Connections/conecta.php'); ?>
<?php
// Require the MXI classes
require_once ('../includes/mxi/MXI.php');
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
{
$theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
$theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
switch ($theType) {
case "text":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "long":
case "int":
$theValue = ($theValue != "") ? intval($theValue) : "NULL";
break;
case "double":
$theValue = ($theValue != "") ? "'" . doubleval($theValue) . "'" : "NULL";
break;
case "date":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "defined":
$theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
break;
}
return $theValue;
}
}
mysql_select_db($database_conecta, $conecta);
$query_Recordset1 = "SELECT * FROM filhotes ORDER BY id ASC";
$Recordset1 = mysql_query($query_Recordset1, $conecta) or die(mysql_error());
$row_Recordset1 = mysql_fetch_assoc($Recordset1);
$totalRows_Recordset1 = mysql_num_rows($Recordset1);
// Make a transaction dispatcher instance
$tNGs = new tNG_dispatcher("");
?><html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
</head>
<body>
<div id="base" margin="0 auto" align="center"><table width="1010" border="0" align="center">
<tr>
<td>
<?php
mxi_includes_start("topo.php");
require(basename("topo.php"));
mxi_includes_end();
?> </td>
</tr>
<tr>
<td>
<?php
mxi_includes_start("menu.php");
require(basename("menu.php"));
mxi_includes_end();
?></td>
</tr>
<tr>
<td><p> </p>
<table border="1">
<tr>
<td>foto</td>
<td>nome_gatil</td>
<td>filhotes</td>
<td>OPÇÕES</td>
</tr>
<?php do { ?>
<tr>
<td><?php echo $row_Recordset1['foto']; ?></td>
<td><?php echo $row_Recordset1['nome_gatil']; ?></td>
<td><?php echo $row_Recordset1['filhotes']; ?></td>
<td>Alterar</td>
</tr>
<?php } while ($row_Recordset1 = mysql_fetch_assoc($Recordset1)); ?>
</table></td>
</tr>
</table>
</div>
</body>
</html>
<?php
mysql_free_result($Recordset1);
?>
A linha do erro é a 42:
$tNGs = new tNG_dispatcher("");
Alguém poderia me ajudar?
Por favor.
Obrigado!
Carregando comentários...