Post Pacific  

Go Back   Post Pacific > Восстановленный архив > Темы без сохранившегося раздела

Notices

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old 05.08.2007, 02:16   #32
Elven
Архивный участник
 
Join Date: Dec 2006
Posts: 15
Default

I have added new function - history of sales and purchases. Thus has collided with that that in a field ‘count’ in table ‘logs’ save the rest, instead of quantity of the sold things. If you wish to write down the quantity of the sold things replace
It
Code:
makelog(2,get_char_id($_SESSION['char']),$data_sale['char_id'],$data_sale['item_id'], $data_sale['count'],$data_sale['enchant'],$data_sale['db_id']);
on
Code:
makelog(2,get_char_id($_SESSION['char']),$data_sale['char_id'],$data_sale['item_id'],safe_int($_POST['count']),$data_sale['enchant'],$data_sale['db_id']);

//rus
Я добавил новую функцию - историю продаж и покупок, доступную для просмотра пользовтелям. При этом столкнулся с тем, что в поле 'count' в таблице 'logs' записывается остаток, а не количество проданных вещей.
Если вы хотите записать не остаток, а количество проданных вещей, то замените

Это
Code:
makelog(2,get_char_id($_SESSION['char']),$data_sale['char_id'],$data_sale['item_id'], $data_sale['count'],$data_sale['enchant'],$data_sale['db_id']);
на
Code:
makelog(2,get_char_id($_SESSION['char']),$data_sale['char_id'],$data_sale['item_id'],safe_int($_POST['count']),$data_sale['enchant'],$data_sale['db_id']);
Elven is offline  
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 20:08.