Answer the question
In order to leave comments, you need to log in
How to use {{#each}} handlebars on json object with no name?
After sampling from the database, we have a json object, in the console it looks like this:
How to work with this? Or how to call it after fetching an array from the base?
Request to the database, if needed of course))
public function fetch_assoc_array($asql, $aarr)
{
$array = array();
$arr = $this->pdo->prepare($asql);
$arr->execute($aarr);
while($row = $arr->fetch())
{
$array[] = $row;
}
return $array;
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question