如果从另一个文件调用,则清除类不起作用

时间:2017-06-19 21:38:18

标签: javascript php jquery



<?php
$conn = new mysqli("localhost","root","","noti");
$sql="UPDATE comments SET status=1 WHERE status=0"; 
$result=mysqli_query($conn, $sql);
$sql="select * from comments ORDER BY id DESC limit 5";
$result=mysqli_query($conn, $sql);
$response='';
 while($row=mysqli_fetch_array($result)) {
$response = $response . " <li class='unread'>" .
"<h4>". $row["subject"] . "</h4>" . 
"<p>" . $row["comment"]  . "</p><span class='time'>8:01pm</span>
 <span class='clear'>Clear</span>" .      // the clear class calling
"</li>";
}


if(!empty($response)) {
print $response;
}
?>
&#13;
&#13;
&#13;

当我没有从另一个文件中调用它时,我的明确课程工作正常。 但现在我正在使用另一个文件来显示清晰的类。实际上它附带了视图通知文件,所以index.php中的每个条目都在数据库中创建一个通知我通过view-notification.php调用

这是我的view-notification.php:

fig, axes = plt.subplots(2, 2, figsize=(12, 10))
for index, column in zip(range(4), ['Region', 'Sex', 'Age', 'Citizenship']):
   value_count = cps[column][cps.Married.isnull()].value_counts()
   ax = fig.add_subplot(2, 2, index+1)
   value_count.plot(kind='bar', ax=ax)
plt.tight_layout()
plt.show()

0 个答案:

没有答案