1mysqli_report(MYSQLI_REPORT_ERROR | MYSQLI_REPORT_STRICT);
2$link = mysqli_connect("host", "username", "password","db_name");
3mysqli_set_charset($link, "utf8mb4");
4
5$result = mysqli_query($link, "SELECT count(*) FROM blackandwhite");
6$num_rows = mysqli_fetch_row($result)[0];
7
8echo "$num_rows Rows\n";
9