hello,
I have trouble with mustache php template engine.
I have this:
$get2 = mysqli_query($link,"SELECT * FROM users_table");
while($row = mysqli_fetch_assoc($get2)) {
$values3 = array('repo' => array(
'name3'=>$row['user_name'],
),);
}
And in template file i try to catch all with:
<select>
{{#repo}}
<option value="{{ name3 }}">{{ name3 }}</option>
{{/repo}}
</select>
Its shows only first name.
I have 2 names in table 'lqlqlq' and 'lqlqlq2', it shows only lqlqlq2.
Maybe i dont understand the way to work with while cycles and array's.
Can someone with experience with this help me ?
PS:
I try with {{ . }} too.