i have this code ,im doing a shopping cart an dwhat i want is whenever i edit the admin panel agg new products and image. . i want to display it in my online catalog , but i can do that .
`// Image Load
$st_id_img=$st_id.".png";
$sfile = $_FILES['img']['tmp_name'];
$dfile = "img/products/".$st_id_img;
copy($sfile, $dfile);
$sql= "INSERT INTO shop(id, name, product_qty, price, description, img, product_category) VALUES('$st_id','$name', '$product_qty','$price', '$description', '$dfile', '$_REQUEST[product_category]' )";
if (!mysql_query($sql, $con)){die('Error: ' . mysql_error());}
else
$msg= "Record is added Successfully";
}
else
`