how to display sql query out in bit-by-bit in form of list (<li>). php codeigniter -


i have sql query:

select count(*) tot_std `login`  `login_account_type` = 'student'  , `login_account_status` = 'active' 

the out of query 3910. want display result bit bit, not whole number. example want output this:

  • 3
  • 9
  • 1
  • 0

note using php codeigniter. please help.

use str_split() split 3910 as

$str = "3910";  $arr2 = str_split($str, 1);  echo "<ul>";  foreach($arr2 $number) {  echo "<li>".  $number."</li>" ;  } echo "</ul> "; 

Comments

Popular posts from this blog

sql - invalid in the select list because it is not contained in either an aggregate function -

Angularjs unit testing - ng-disabled not working when adding text to textarea -

How to start daemon on android by adb -