core/api/modules/lk-edit-tovar/ajax.php

19 lines
725 B
PHP
Executable File

<?php
if ( !$_SESSION['user_id'] ) die ( 'Кыш' );
echo 1;
require_once MYDIR . '/api/php/db.php';
require_once MYDIR . '/api/php/clean.php';
switch( @$_POST['act'] ) {
/* ----------------------------------------------------------------------
23.11.2022
Обновляем цену
---------------------------------------------------------------------- */
case 'saveCena':
//echo 'UPDATE `multyTovar` SET `cena` = "' . $_POST['cena'] . '" WHERE `org_id` = ' . $_POST['org_id'] . ' AND `tovar_id`=' . $_POST['tovar_id'];
DB::set('UPDATE `multyTovar` SET `cena` = "' . $_POST['cena'] . '" WHERE `org_id` = ' . $_POST['org_id'] . ' AND `tovar_id`=' . $_POST['tovar_id']);
break;
default:
}