Mysql
 sql >> Database >  >> RDS >> Mysql

Come creare elenchi a discesa a cascata usando mysql e php

l'opzione deve essere array.

$options[]="<OPTGROUP LABEL=\"$category_name\"> <br />";
<SELECT NAME="category_id">
   <?php foreach ($options as $value) 
           echo $value?>
</SELECT>