вот код
<?php
session_start();
require_once 'connection.php';
$title = $_POST['title'];
$text = $_POST['text'];
$is_approved = '1';
$point = $_POST['point'];
$user_id = $_SESSION['user']['id'];
$user_point = $_SESSION['user']['point'];
$date = date('Y-m-d H:i:s');
$sql = "INSERT INTO `themes` (title, text, user_id, date, is_approved, point) VALUES ('$title', '$text', '$user_id', '$date','$is_approved','$point')";
$query = "UPDATE `users` SET `surname` = 's' WHERE `users`.`id` = $id;";
$result = mysqli_query($connect, $sql, $query);
if($result)
{
header('Location: ../pages/forum.php');
}
?>
помогите решить ошибку
А вот ошибка
mysqli_query() expects parameter 3 to be integer, string given in