prokat/api/modules/lentatovarov/tovar_set_hars.php
2025-06-16 18:28:08 +05:00

18 lines
419 B
PHP
Executable File

<?php
$hars=\DBmysql::getAll("SELECT tovar_har_sp.txt AS tip, tovar_har.txt AS hval
FROM `tovar_har`, `tovar_har_sp`
WHERE tovar_har.tovar_id=? AND tovar_har.tovar_har_sp_id=tovar_har_sp.id", modClass::$content['massiv']['original_id']);
modClass::$content['massiv']['hars']=$hars;
\DBmysql::set("UPDATE `content` SET `json`=? WHERE `id`=? LIMIT 1", [\core::j(modClass::$content['massiv']), $_GET['id']]);
?>