Answer the question
In order to leave comments, you need to log in
What is the problem with mysqli_set_charset()?
There is a code
include_ONCE("connect_db.php");
include_once("function.php");
mysqli_set_charset('utf8'); <------ Ругается на эту строку
$id = clear_string($_POST['id']);
$name = clear_string($_POST['name']);
$good = clear_string($_POST['good']);
$bad = clear_string($_POST['bad']);
$comment = clear_string($_POST['comment']);
mysqli_query ($connection,"INSERT INTO table_reviews(`products_id`,`name`,`good_reviews`,`bad_reviews`,`comment`,`date`)
VALUES(
'".$id."',
'".$name."',
'".$good."',
'".$bad."',
'".$comment."',
NOW()
)");
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question