Add php files

This commit is contained in:
2025-05-12 15:44:39 +00:00
parent c951760058
commit 82d5804ac4
9534 changed files with 2638137 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
<?php
if($_REQUEST['code']!='' ){
$w = $GLOBALS['db']->query("select count(code) as c from ecmproducts where code='".$_REQUEST['code']."'");
$r = $GLOBALS['db']->fetchByAssoc($w);
if($r['c']>0){
if($_REQUEST['record']!=''){
$w2 = $GLOBALS['db']->query("select code as c from ecmproducts where id='".$_REQUEST['record']."'");
$r2 = $GLOBALS['db']->fetchByAssoc($w2);
if($_REQUEST['code']==$r2['c']){
} else {
echo 'Istnieje już produkt o podanym kodzie!';
}
} else {
echo 'Istnieje już produkt o podanym kodzie!';
}
}else {
}
}
?>