PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
I just want to know, is it possible to make a <option> be selected according to the value in a mysql database, for example:
i have in my database "month" and its value is "3" and i want the <option> with the same value as the "month" to be selected and the other 11 must still show in the <select> list just the one <option> must be selected. Making sense? Hope so
mysql_function(): WARNING: This extension is deprecated as of PHP 5.5.0, and will be removed in the future. Instead, the MySQLi or PDO_MySQLextension should be used. See also MySQL: choosing an API guide and related FAQ for more information.