Categories
Why does the fetch method return only one element in bitrix?
$s = $DB->Query(" SELECT QUANTITY FROM b_catalog_product "); dd($s->fetch());
Answer the question
In order to leave comments, you need to log in
Cycle through and collect.
while ($row = $results->Fetch()) { echo $row['NAME'];//выводим все значения, которые вернул запрос }
Didn't find what you were looking for?
Ask a Question
731 491 924 answers to any question