How To load the array values as Dynamic?

Shadywolf21

Sample

As you See the Above picture is where i want to load the Counts from the array dynamically from the db.In this code iam using it as static how to show the count Dynamically ? This is the code i am currently using

       <h3 class="card-title fw-l"><?php echo  $dispcnt[0]->cnt;?> Counts</h3>```


I work in CodeIgniter
Muhammad Shahid

Try this solution:

<?php
foreach($dispcnt as $object)
{
?>
    <h3 class="card-title fw-l"><?php echo  $object->cnt;?> Counts</h3>
<?php
}
?>

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

How to use a Sub to populate values of a (dynamic) array

How to get Records order by dynamic array of values?

How to make an array of objects from dynamic values?

How to extract an array from a String with dynamic values?

How to load some values to an instance of an array of objects?

How to load values into an array list from a resource

how to load values into extern shared array

how to create dynamic array and adding dynamic values using jQuery.

how to merge array dynamic values with same index with same array name

dynamic array name with values

Load array values on textbox

How to make a dynamic json list/array with database values

How to map get values by dynamic key from array of object?

how to get total value of array object values using dynamic keys

PHP: How to output dynamic multi dimension array values?

How to sort an array based on Values of it's dynamic Objects

how to add multiple values in array of session in php by dynamic generation of key

How to push the key and values to array and build the dynamic query?

How to load values from array of dictionary into tableview cell

How to declare and load multiple array values into RAM with ARM assembly?

How to dynamically render/load my array with two values?

How to load 3 values from a file into a char* array (C)?

load dynamic values in form elements in jquerymobile

Javascript dynamic checkbox values as array

iOS Adding Dynamic Values to Array

Create JS array with dynamic values

Dynamic values in JSON array query

Store and Paste values with a dynamic array

Extract values from dynamic array