Answer the question
In order to leave comments, you need to log in
While not iterating over first element of php array?
Guys, I'm displaying data in a loop. But the while loop is not iterating over the first element of the array, what could be wrong?
<?php while($result = $stmt->fetch()){ ?>
<article class="tile is-child notification is-primary">
<p class="title"><?=$result['title']?> - <?=$result['cur']?></p>
<p class="subtitle"><?=$result['subtext']?></p>
</article>
<?php } ?>
$stmt = $pdo->query("SELECT * FROM `strategy` WHERE 1");
Answer the question
In order to leave comments, you need to log in
Hello. Did you manage to figure it out? As I understand it, you can’t get information by the state number, only by the number of the pass itself?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question