I was hoping somebody could help me with this. I'm using codeigniter as my framework. In one of my views, I'd like to output as many tabs as the number in "bestoutof" column in my database. The code I tried is:
<?php for ($x = 1; $x = $post->bestoutof; $x++) {
echo '<div class="tab-pane fade active in" id="game<?php $post->bestoutof; ?>"></div>'; } ?>
But it doesn't seem to work. I'd greatly appreciate any help on this.
Thank you!