the query of insert data work correctly locally but after uploaded to server the query return false without waring or error message
$name = mysqli_real_escape_string($conn, $_REQUEST['name']);
$flag = 1;
$stmt = $conn->prepare("INSERT INTO user_tab (name,flag)
VALUES(?,?)");
$stmt->bind_param('si', $name,$flag);
if($stmt->execute()){
echo ' yes';
}
else{
echo ' no ';
}
before upload to server the result of echo is ‘yes’ .. after the upload return ‘no’