mysqli_result与mysql_result函数运行错误
$con=mysqli_connect('localhost','root','123456');
mysqli_select_db($con,'chunyu');
mysqli_query($con,'set name utf8');
$query=mysqli_query($con,'select*from hello');
//echo mysqli_num_rows($query);
//$arr=mysqli_fetch_row($query);
//echo $arr[0];
echo mysql_result($query,0,1);
运行显示错误为undefined function mysqli_result();
当为mysql_result(),运行错误为ysql_result() expects parameter 1 to be resource, object given in D:\Demo\test01\index.php on line 9;
请各位大神指点,不胜感激!!

 
                             
                            