core/k.php

13 lines
485 B
PHP
Raw Permalink Normal View History

2023-07-12 20:02:20 +05:00
<?php
require_once 'api/php/db.php';
$_SERVER['SERVER_NAME']="creativewebstudio.ru";
require_once 'set/creativewebstudio.ru.php';
$tovar=DB::getAll("SELECT * FROM `tovar_s`");
for ($i=0; $i<count($tovar); $i++){
$sw_id=DB::getValue("SELECT `tovar_id` FROM `sw` WHERE `sw`=?", $tovar[$i]['tovar_id']);
$price=DB::getValue("SELECT `sw` FROM `price` WHERE `price`=?", $sw_id);
if ($price)echo $tovar[$i]['txt'] . ';' . $price . "\n";
unset($price);
unset($sw_id);
}
?>