Sitealert

Рейтинг
469
Регистрация
30.09.2016
SeVlad:
Речь о традиционно сложившейся практике/сленгу в ру-девелоперсве.

А мне мой английский не позволяет так писать. Просто выворачивает, когда читаю "реврайт".

"Ай донт кнов", - сэд Иван Сусанин, - "Так вам и надо, фашистские гады".
SeVlad:
Speech on the traditionally established practice / slang in ru-developersve.

And I my English does not allow write well. Just turns, when I read "revrayt".

"Ai Dont k new" - EDS Ivan Susanin - "Serves you right, fascist bastards."
timo-71:
Sly32 задал абстрактный вопрос - задачу для первоклассника.

Он утверждает, что это очень важная задача. 😎

Sly32:
Ответом из моей задачки будет пользоваться полтора миллиона подписчиков
timo-71:
Не суть как эта задача появляется. Это может быть рекурсивно.

Да нет же. Он получает данные из базы данных.

Sly32:
Данные приходят на бэкенде из базы данных
timo-71:
Sly32 asked the abstract question - challenge for a first grader.

He argues that this is a very important task. 😎

Sly32:
The response of my tasks will be to use one and a half million subscribers

timo-71:
Not the essence of this task is displayed. This can be recursive.

No. It receives data from the database.

Sly32:
The data come from the backend to the database
estic:
Sitealert, странно, что вы до сих пор не прочитали написанное мной.

Я всё прочитал. В каком месте ещё читать? Покажи.

estic:
Я нахожусь немного в других реалиях.
Ну это твоё право. Можешь находиться и в альтернативной реальности. Только не путай её с настоящей.
estic:
Sitealert, it is strange that you still have not read written by me.

I read everything. At what point more to read? Show.

estic:
I'm a little bit in other realities.
Well, it's your right. You may be in an alternate reality. Just do not confuse it with the present.

Если начинать от стартпоста, то там массив объектов. Проблема решения задачи высосана из пальца.

Решение на javascript:

a.map(function(item){if(item.media_category!='promo')b.push(item)});

Решение на PHP:

foreach($arr as $k=>$a) if($a->media_category == 'promo') unset($arr[$k]);

Но правильнее сразу делать выборку из БД. И БД выбирать такую, которая может хранить структурированные данные, а не всякое говно.

If you start from startposta, then there is an array of objects. The problem of solving the problem is sucked from the finger.

on javascript solution:

 a.map (function (item) {if (item.media_category = 'promo') b.push (item)!}); 

The decision on the PHP:

 foreach ($ arr as $ k => $ a) if ($ a-> media_category == 'promo') unset ($ arr [$ k]); 

But the right once to select from the database. And choose a database that can store structured data, rather than any shit.

Samail:
Вы main.js видели? Может там по id по значения полей по одному получаются и передаются.

Видел. ТС выше дал адрес. Нет там ничего.

Samail:
Main.js you saw? Can there by id of the field values are obtained and transmitted by one.

Saw. TC above given address. No there is nothing.

Всего: 8084