1 回答

TA貢獻(xiàn)1828條經(jīng)驗(yàn) 獲得超13個(gè)贊
嘗試這個(gè) :
//GET ALL SONGS FROM DATABASE
$query = $dbConn->query("SELECT track_id, track_title FROM track");
echo '<select class="feild" name="songDrop">';//MAKE THE DROPDOWN
echo '<option value="none">Choose the Song to add</option>';
// Loop through the query results, displaying the options one by one
while ($row = mysqli_fetch_array($query)) {
echo '<option value="'.$row['track_id'].'">'.$row['track_title'].'</option>';
}
echo '</select>';
- 1 回答
- 0 關(guān)注
- 125 瀏覽
添加回答
舉報(bào)