Código PHP:
Ver original<form id="form1" name="form1" method="post" action="">
<select name="id_marca">
<?php
$z = dbquery("SELECT * FROM tab_marca WHERE id_customer='".$customer."'");
while($ha = dbarray($z)){
$m = dbquery("SELECT * FROM tab_marcas WHERE ORDER BY name ASC");
$r=dbarray($m);
if($ha['id_marcas']!=$r['id_marcas']){
?>
<option value="<?php echo $r['id_marcas']; ?>"><?php echo $r['name']; ?></option>
<?php
}
}
?>
</select>
<input type="submit" name="manufacturer" id="button" value="Guardar" />
</label>
</form>
checa que las tablas esten bien