Islandora-Labs / islandora_solr_collection_view

This replaces the browse display provided by Islandora collection objects with a View, providing enhanced customization and performance.
http://islandora.ca/
GNU General Public License v3.0
3 stars 4 forks source link

Notice: Array to string conversion in C:\wamp64\www\Login\p_save.php on line 12 #24

Open anasishere opened 6 years ago

anasishere commented 6 years ago

``<?php $pr_name = $_POST['p_name']; $pr_type = $_POST['p_type']; $pr_desc = $_POST['p_desc']; $pr_img = $_FILES['p_img'];

//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";
}

?>