Ver Mensaje Individual
  #6 (permalink)  
Antiguo 04/07/2010, 11:31
Avatar de urgido
urgido
 
Fecha de Ingreso: febrero-2005
Mensajes: 2.351
Antigüedad: 19 años, 1 mes
Puntos: 25
Respuesta: PHP+MySQL+Formulario con combos

Código PHP:
Ver original
  1. <form id="form1" name="form1" method="post" action="">
  2. <select name="id_marca">
  3. <?php
  4. $z = dbquery("SELECT * FROM tab_marca WHERE id_customer='".$customer."'");
  5. while($ha = dbarray($z)){
  6. $m = dbquery("SELECT * FROM tab_marcas WHERE ORDER BY name ASC");
  7. $r=dbarray($m);
  8. if($ha['id_marcas']!=$r['id_marcas']){
  9. ?>
  10.   <option value="<?php echo $r['id_marcas'];  ?>"><?php echo $r['name']; ?></option>
  11. <?php
  12. }
  13. }
  14. ?>
  15. </select>
  16.   <input type="submit" name="manufacturer" id="button" value="Guardar" />
  17. </label>
  18. </form>

checa que las tablas esten bien
__________________
Hospedaje Web al mejor costo!