13 lines
485 B
PHP
13 lines
485 B
PHP
<?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);
|
|
}
|
|
?>
|