Question: how to get value in select box from database in php?
Answer: php $sql = "select * from mine where username = '$user' "; $res = mysql_query($sql); while($list = mysql_fetch_assoc($res)){ $category = $list['category']; $username = $list['username']; $options = $list['options']; ?> <input type="text" name="category" value="<?