Home > database >  The database
The database

Time:10-25

Stored in the database of the gender is 1 and 2, display the results of 1 is male 2 is female, so I write a search in the table I search box enter male will show boys do

CodePudding user response:

In the application side can be converted to 1 and 2 first

CodePudding user response:

On the interface should not let user input, to a drop-down box, similar web page version of the source code:
 & lt; Select id='Gender' name='Gender' & gt; 





Users to see or choose is male, but the corresponding value is 1, to the background is also 1, this kind of treatment is convenient,
  • Related