Es cierto Covids0020, ya lo he arreglado pero me sigue sin funcionar al pasar la opción del menú me da diferentes errores según la opción que selecciono:
- Unknown column 'blanco' in 'field list'
- You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'azul where id=11' at line 1
Código PHP:
<select name="p_predecesor">
<? foreach($categs as $categ) { ?>
<option value="<?=$categ['predecesor']?>">
<?=$categ['predecesor']?></option>
<? }?>
<option selected>???????</option>
</select>