A
A
Anon33632020-05-12 14:45:08
PHP
Anon3363, 2020-05-12 14:45:08

Why does output from the database output one result in each container?

<?php while ( $row = $result->fetch_assoc()):?>
            <?php $allresults[] = $row; ?>
            <div class="child_container">
                <img src="<?=$row['bank_name']?>" alt="" height="150" width="150" class="bank_name">
                <a href="<?= $row['link']?>" class="btn btn-primary get_credit" target="_blank" disabled="disabled">Դիմել առցանց</a>
                <span class="result_child prcent">սկսած <?= $row['percent']?>%</span>
                <span class="result_child price"><?= $row['price']?> &#1423;</span> 
                <h6 class="view">Մանրամասն ▼</h6>
                <br/>
                <div class="details">   
                    <span class="cr_name">Վարկատեսակ:</span> 
                    <span class="result_child vark_name"><?= $row['varks_name']?></span>
                    <span class="cr_dat">Ժամկետը:</span>
                    <span class="result_child vark_date">մինչև <?= $row['expiry_date']?> ամիս</span>
                    <span class="condition"> Վարկառուի նկատմամբ պահանջները</span>
                    <span class="cond"><i class="fa fa-check" style="font-size:20px;color:#007bff"></i> <?= $row['arajarks_payman']?></span> 
                    <h6 class="clos">Փակել ▲</h6>
                </div>
            </div>
        <?php endwhile; ?>


5eba8c20105e5782144713.png

in the database linked one to no longer outputs to one

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question