Php 未定义的属性函数成功警告
我有一个问题,这个代码,这个警告总是出现,我是新的,我没有找到一个解决方案,他们可以帮助吗 出现以下错误:未定义的属性:函数:$\uSuces C:/xampp/htdocs/cash/index.php,位于第14行 守则:Php 未定义的属性函数成功警告,php,Php,我有一个问题,这个代码,这个警告总是出现,我是新的,我没有找到一个解决方案,他们可以帮助吗 出现以下错误:未定义的属性:函数:$\uSuces C:/xampp/htdocs/cash/index.php,位于第14行 守则: <?php require_once('class/functions.class.php'); $_Func = new Functions(); if($_Func->_Error) require_once('error.php'); els
<?php
require_once('class/functions.class.php');
$_Func = new Functions();
if($_Func->_Error) require_once('error.php');
else if($_Func->_Sucess) require_once('sucess.php');
else if(!$_Func->isLogged) require_once('login.php');
else if(!$_Func->isLogged)
require_once('login.php');
else {if(@$_GET['page'] == 'donate')
require_once('donate.php');
else if(@$_GET['item'])
require_once('info.php');
else
require_once('loja.php');
}
?>
错误:
未定义的属性:第14行的函数:$\suces C:/xampp/htdocs/cash/index.php
告诉你所有你需要知道的。在这种情况下,属性\u success
不是对象$\u Func
的一部分
这看起来像是一个打字错误,应该是:
$_Func->_Success
如果错误仍然存在,suces.php将如下所示:
<?php if(!$_Func)return false; ?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Market</title>
<link rel="stylesheet" href="css/style.css" charset="utf-8">
</head>
<style type="text/css">
html{
overflow: hidden;
}
body {
margin:0;
font-family:Gotham, "Helvetica Neue", Helvetica, Arial, sans-serif;
overflow:hidden;
background:url(images/mail.jpg) no-repeat;
color:#fff;
text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black;
}
</style>
<body>
<img src="" />
<div class="bar-center"></div>
<div id="content">
<div class="title"></div>
<div class="form">
<div class="erro">
<big><big><big><big><font color=\"#FF0000\">SUCESS</font></big></big></big></big><br><br>
<span class="tarea">
<?php echo $_Func->_Sucess;?>
</span>
<div class="return">
<a href="?page=home">
<img src="img/botton-03.gif" width="159" height="42" name="Image3" border="0">
</div>
</div>
</a>
</div>
</div>
</body>
</html>
市场
html{
溢出:隐藏;
}
身体{
保证金:0;
字体系列:Gotham,“Helvetica Neue”,Helvetica,Arial,无衬线;
溢出:隐藏;
背景:url(images/mail.jpg)不重复;
颜色:#fff;
文本阴影:-1px 0黑色,0 1px黑色,1px 0黑色,0-1px黑色;
}
成功
文件'class/functions.class.php'中包含什么?$this->\u Sucess=“Parabéns!Sua compa foi bem sucedida
成功的部分是这一部分请通过编辑问题(链接位于问题底部)而不是通过答案向问题添加新信息。