Click here to Skip to main content
15,860,859 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
This is my function to display checkboxes

function builcheckBrand($children){
$list = '';
$sql = "SELECT distinct br.brand_id,br.brand_name,tp.pd_brand_id FROM ak_krt_pd_brand br JOIN ak_krt_tbl_product tp on tp.pd_brand_id=br.brand_id where cat_id IN $children";
$result = dbQuery($sql) or die('Cannot get Product. ' . mysql_error());
$results = dbNumRows($result);
$count=count($results);
if($results != 0)
{
while($nt=mysql_fetch_array($result))
{
echo "<input type='checkbox' align='top' name='checkbox[]' value='$nt[brand_id]'>$nt[brand_name]
";
}
}else{}
}
Posted

1 solution

Styling is a matter to be dealt with only on client-side (broswer) using CSS, it has nothing to do with PHP on the server-side.
1. If you are new to CSS, visit CSS Tutorial[^]
2. If you are looking for tips to style checkboxes, check this out: How To Style A Checkbox With CSS[^]
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900