28 lines
495 B
PHP
28 lines
495 B
PHP
|
<?php
|
||
|
ini_set('display_errors', 0);
|
||
|
$_SERVER['SERVER_NAME'] = 'tk-ligat.ru';
|
||
|
require_once('/home/cloud/core/set/tk-ligat.ru.php');
|
||
|
require_once('/home/cloud/core/api/php/db.php');
|
||
|
|
||
|
|
||
|
|
||
|
$res=DB::getAll("SELECT tovar_barcode.barcode, tovar.title, tovar.artikul FROM `tovar_barcode`
|
||
|
JOIN tovar
|
||
|
ON tovar.id=tovar_barcode.tovar_id
|
||
|
|
||
|
");
|
||
|
|
||
|
|
||
|
for ($i=0; $i<count($res); $i++){
|
||
|
|
||
|
$st= $st.$res[$i]['barcode'] . ";" . $res[$i]['title'] . ";" . $res[$i]['artikul'] . "\n";
|
||
|
|
||
|
|
||
|
|
||
|
}
|
||
|
|
||
|
//print_r($res);
|
||
|
echo $st;
|
||
|
|
||
|
|
||
|
?>
|