Could you guys please tell me what is missing on this code. because i get SQL Syntax Error.
i have created table with three colums. ID is auto incriminating and Ima
You are trying to insert the value '$img_name' as Name and not img_name content. Try the following:
$query = mysqli_query($Con, "INSERT INTO `cars_tbl` (ID,Name,Image) VALUES ('','" . $img_name . "','" . $image . "')");