Jump to content

Select


unidox

Recommended Posts

My Code:

 

if ($fieldtype[$i] == "selectb") {
                            $r = mysql_fetch_array(mysql_query("SELECT * FROM `cp_divisions` ORDER BY division_id DESC"));
                    		$divis[] = $r['division'];
                            echo "<select name=\"" . $field[$i] . "\">";
                        for ($o = 0; $o < count($r); $o++) {
                        ?>
                              <option value=
                              "<?=$divis[$o]?>">
                              <?=$divis[$o]?>
                              </option>
                              </select>
                			<?
                            }
				}

 

Works, but I have more than 1 in the table, how do I echo more than one?

Link to comment
https://forums.phpfreaks.com/topic/70241-select/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.