first commit
This commit is contained in:
17
model_controller/save.article.pic.php
Normal file
17
model_controller/save.article.pic.php
Normal file
@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
include ('../inc/includes.php');
|
||||
|
||||
|
||||
function updateProductPic($imglink,$codeart){
|
||||
|
||||
global $DB;
|
||||
|
||||
$query = "UPDATE `Produit` SET `imgpath`= ? where `ART_CODE`= ?";
|
||||
$stmt = $DB->prepare($query);
|
||||
|
||||
$stmt->bind_param("si" , $imglink,$codeart);
|
||||
|
||||
$stmt->execute();
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user