first commit

This commit is contained in:
fashionavenue@siliconpin.com
2026-02-13 05:55:12 +00:00
commit 26f1e8b917
36 changed files with 2710 additions and 0 deletions

35
delete-barcode.php Normal file
View File

@@ -0,0 +1,35 @@
<?php
define("PWD", getcwd()); session_start(); define("MYSQL_HOST", "10.0.0.108"); define("MYSQL_USER", "siliconpin"); define("MYSQL_DB", "siliconpin_bill"); define("MYSQL_PASS", "bijaynagar"); define("SHOP_ID", "119");
$ss = $_POST['productsids'];
var_dump($ss);
$productIDs = explode(",", $ss);
$link = new mysqli(MYSQL_HOST, MYSQL_USER, MYSQL_PASS, MYSQL_DB);
if ($link->connect_error) {
die("Connection failed: " . $link->connect_error);
}
foreach ($productIDs as $id) {
$query = "DELETE FROM `" . SHOP_ID . "_product` WHERE `id` = ?";
$stmt = $link->prepare($query);
$stmt->bind_param("i", $id);
$stmt->execute();
header("Location: ./view-product");
$stmt->close();
}
$link->close();
?>
<style>
</style>