game/adminion/lib/loadItemInfo.php

19 lines
745 B
PHP
Raw Normal View History

2022-12-19 20:22:19 +00:00
<?
/*if($_POST['item_id']){
include_once('../../_incl_data/__config.php');
define('GAME',true);
include_once('../../_incl_data/class/__db_connect.php');
$item = mysql_fetch_array(mysql_query("SELECT name FROM items_main WHERE id = '".$_POST['item_id']."' LIMIT 1"));
echo $item['name']." [".$_POST['item_id']."]";
}
if($_POST['getListItems'] == true){
include_once('../../_incl_data/__config.php');
define('GAME',true);
include_once('../../_incl_data/class/__db_connect.php');
2023-01-10 16:29:32 +00:00
$items = mysql_query("SELECT id, info FROM items_main WHERE `info` LIKE 'Предмет для ботов%'");
2022-12-19 20:22:19 +00:00
while($item = mysql_fetch_array($items)){
$item['info'] = explode(':',$item['info']);
echo $item['info'][1]." [".$item['id']."]";
}
}*/
?>