//print_r($pr_img); ==> to see files's all kind of info
include 'db_connection.php';
$p_save="INSERT INTO product_info(p_name,p_type,p_desc,p_img) VALUES ($pr_name,$pr_type,$pr_desc,$pr_img)";
$q_exec=mysqli_query($db_connection,$p_save);
mysqli_fetch_assoc($q_exec);
if($p_save)
{
echo "successfuly saved data";
}
``<?php $pr_name = $_POST['p_name']; $pr_type = $_POST['p_type']; $pr_desc = $_POST['p_desc']; $pr_img = $_FILES['p_img'];
?>