Hi is this correct syntax......i want the values which are displayed from the table should be stored in an array .......
<?php
include('database.php');
$stype=$_POST['category'];
if($stype=="service_category")
{
$result = mysql_query("SELECT * FROM service_category ");
while($row = mysql_fetch_array($result))
{
?>
<input type="Checkbox" id="a[]" value="servicec"><?echo $row['servicec'];
echo "<br />";
for($i=0;$i<6;$i++)
{
$a[i]=$row['servicec'];
}
}
}