Warning: mysqli_query() expects at least 2 parameters, 1 given in D:\phpstudy_pro\WWW\allusers.php on line 31Warning: mysqli_num_rows() expects parameter 1 to be mysqli_result, null given in D:\phpstudy_pro\WWW \allusers.php on line 33
The following is the code
//Query all data in the data table
$result=mysqli_query("SELECT * FROM users BY id DESC ");
//Get the number of data items in the data table
$dataCount=mysqli_num_rows($result);
//echo $dataCount;
//Print out all data
灭绝师太2021-03-08 09:24:25
mysqli_query() receives two parameters, the first parameter is the MySQL connection