mirror of
https://github.com/devcode-it/openstamanager.git
synced 2024-12-24 22:42:33 +01:00
13 lines
333 B
PHP
13 lines
333 B
PHP
<?php
|
|
|
|
switch ($resource) {
|
|
case 'articoli':
|
|
$query = 'SELECT *, (SELECT nome FROM mg_categorie WHERE id = mg_articoli.id_categoria) AS categoria, (SELECT nome FROM mg_categorie WHERE id = mg_articoli.id_sottocategoria) AS sottocategoria FROM mg_articoli WHERE attivo = 1';
|
|
|
|
break;
|
|
}
|
|
|
|
return [
|
|
'articoli',
|
|
];
|