1.) Adapter Choice (std. mysql, mysqli, pdo)
2.) Database Table (the table schema preferably)
3.) The table columns that will be used for the value and label of each option
Once you post that info an exact answer can be given rather then a generic one.
Your pretty much going to query the database for what you want and loop through that data to display the options. However, the implementation details of that process depends entirely on the information outlined above.
Another thing to note is that there is no input type of text, number. In HTM5 I believe you can declare a number, but the only options in the industry standard, 4.0 are pretty limited. However, in the case that your creating a list of options the appropriate element to use would be a select not an input.