<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>新闻列表</title>
</head>
<body>
<?php echo $data; ?>
</body>
</html>
以上是/views/news.php代码,出现错误如下:
A PHP Error was encounteredSeverity: Notice Message: Undefined variable: data Filename: views/news_view.php Line Number: 10 为什么啊?求大神帮帮我
|