php向数据库插入数据 warning mysqli_fetch_array 出错
<?php
$conn=mysqli_connect('localhost','root','');
mysqli_query($conn,'use newcms');
mysqli_set_charset($conn,'utf8');
$sql='select * from news';
$result=mysqli_query($conn,$sql);
echo "<table border='1'>";
echo "<tr><th>序号</th>";
echo "<th>新闻标题</th>";
echo "<th>新闻类别</th>";
echo "<th>发布时间</th>";
echo "<th>发布人</th>";
echo "<th>序号</th>";
echo "<th>点击次数</th>";
echo "<th>新闻内容</th></tr>";
while($row=mysqli_fetch_array($result)){//这句报错
?>