我通过包含列表标签(li)的ajax检索数据但是当通过ajax html函数时我将其显示在 ul它不把它当作li而是显示为字符串 我的ajax代码是
<?php
include 'classes/connection_and_crud.php';
$query = "select *from admin_notifications where status=1 AND receiveFrom='doctors'";
$result = mysql_query($query) or die(mysql_error());
$num = mysql_num_rows($result) ;
////
$query1 = "select *from admin_notifications where receiveFrom='doctors'";
$result1 = mysql_query($query1);
?>
<li>
<p>You have <?php echo $num; ?> Messages</p>
</li>