$chnos = 28; include 'dbcon.php'; $sql = mysql_query("SELECT active FROM channel_des ;") or die("Query to show fields from table failed"); $chstatus = array(); while($row = mysql_fetch_array($sql)){ array_push($chstatus, $row['active']); } for($i=0; $i <= $chnos; $i++){ echo $chstatus[i]; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)