Good day to all! While Im tring to insert ', ), (, and other smybols, sql is not working. I cannot insert the sybols. I made my db utf8-general-ci but it does not help me. How can I fix it?
My Query is :
<?php
$con = mysqli_connect("localhost", "root", "", "db");
if(isset($_POST['submit'])){
$name = $_FILES['file']['name'];
$temp = $_FILES['file']['tmp_name'];
$depart=$_POST['depart'];
$boshqarma=$_POST['boshqarma'];
$mavzu=$_POST['mavzu'];
$qisqacha=$_POST['qisqacha'];
$hodim=$_POST['hodim'];
$tel=$_POST['tel'];
move_uploaded_file($temp, "upload/".$name);
$sql = "INSERT INTO video (id, name, depart, boshqarma, mavzu, hodim, tel, qisqacha )
VALUES
('', '$name','$depart', '$boshqarma', '$mavzu', '$hodim', '$tel', '$qisqacha')";
if(mysqli_query($con,$sql)){
}
}
?>