[wd_asp elements=’search’ ratio=’100%’ id=1]

Populate dropdown with data from database

5th August 2021

Php - Miscellaneous

php codehaven

Populating a Select dropdown with data stored in the database can be tricky if not done correctly. This is the best way to recall that data simply.

//get info from DB
$options = $row['options'];