<?php
include '../base.php';
$title = $_POST['title'];
$price = $_POST['price'];
$description = $_POST['description'];
$ver1 = strlen($title);
$ver2 = strlen($price);
$ver3 = strlen($description);
if($ver1 and $ver2 and $ver3 > 0){
mysqli_query($connection, "INSERT INTO `products` (`id`, `title`, `price`, `description`) VALUES (NULL, '$title', '$price', '$description')");
}else{
echo "Введите значения в поля ввода!";
}
header('location: ../');
?>