I don\'t understand
Не понимаю, в чем заключается ошибка
query(\"SET
$result_set
is outside the function scope. You can't access it within the function. Try the following changes:
set_charset("utf-8"); //Better to do it this way
$result_set = $mysqli->query ("SELECT * FROM `product`"); //Not the ` instead of '
while (($row = $result_set->fetch_assoc()) != false) {
print_r ($row);
echo "
";
}
$mysqli -> close();
}
You can run this function from anywhere.