ホームページ >バックエンド開発 >PHPチュートリアル >性別を変更するためのドロップダウン ボックスにデータベース内の元の性別を表示する方法
<tr> <td width="148" bgcolor="#FFFFFF"><div align="center" class="STYLE2"> <div align="right" class="STYLE4">性别:</div> </div></td> <td width="443" bgcolor="#FFFFFF" height="41"> <label> <select name="sex"> <option> </option> <option> 男 </option> <option> 女 </option> </select> </label></td> </tr>
sexのフィールドタイプはtinyintですよね? 0=男性 1=女性
3a781b1257eba671f9413691e78b4f00 96552b6bbe967acc4759c922a1f285afa212b5488933ed0b2b5bea43238be98d 男性 4afa15d3069109ac30911f04c56f3338
bc2752b74169f27a1fb12a4976198c73
性別のフィールド タイプは、tinyint です。 0=男性 1=女性
3a781b1257eba671f9413691e78b4f00 96552b6bbe967acc4759c922a1f285afa212b5488933ed0b2b5bea43238be98d 男性
varchar 型を変更するにはどうすればよいですか?
sex のフィールドタイプは tinyint ですよね? 0=男性 1=女性
3a781b1257eba671f9413691e78b4f00 96552b6bbe967acc4759c922a1f285afa212b5488933ed0b2b5bea43238be98d 男性
varchar 型を変更するにはどうすればよいですか?
b78165d5ecfd53964f16568e4e01f0a4 男性 4afa15d3069109ac30911f04c56f3338 <オプション {if $sex=='女性'}選択済み = "{/if}> 女性