Question: I recently made a huge error at work by updating the production database with wrong data. I created a schema against a production database, and created a table. I then got a copy of the table with only the data I replaced from the test server. example, I replaced all the users with type 6 in a column with type 45 in that column, on the production server. I now, have a copy of the only the data with type 6 in that specific column, which was close to 4000 users. I created a schema in the production server, and created the same name table, and copied the dataset in my new schema. 

My question is how do I replace the datasets, on the production database, that I mistakenly replaced 6 from 45, with the dataset from my schema database table, which only contains the users with 6 in that column?

I know I can do it manually, but it will take forever, and hope somebody can help me do it really quickly, and painlessly, SUCH AS A STORED PROCEDURE. Since I been in the dirt for these couple days? Thank you

Answer: 
This is the standard format for bootstrap checkboxes. You also want the `name` to represent what this form group is about (gender), and the `value` to be what the selected checkbox represents (male/female)

```
GENDER   
<div class="checkbox">
  <label><input type="checkbox" value="male" name="gender"> MALE</label>
</div>
<div class="checkbox">
  <label><input type="checkbox" value="female" name="gender"> FEMALE</label>
</div>

```

<https://jsfiddle.net/r6ehhhtd/1/>

```html
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script src="http://getbootstrap.com/dist/js/bootstrap.js"></script>
<link href="http://getbootstrap.com/dist/css/bootstrap.css" rel="stylesheet"/>
<div class="form-group">
    <label class="sr-only" for="exampleInputPassword3">Password</label>
    <input type="password" class="form-control" id="exampleInputPassword3" placeholder="Password" name="password" >
  </div>
            <div class="form-group">
    <label class="sr-only" for="exampleInputPassword3">Password</label>
    <input type="password" class="form-control" id="exampleInputPassword3" placeholder="Password">
  </div>

         GENDER   
<div class="checkbox">
  <label><input type="checkbox" value="male" name="gender"> MALE</label>
</div>
<div class="checkbox">
  <label><input type="checkbox" value="female" name="gender"> FEMALE</label>
</div>

            <div class="form-group">
    <label class="sr-only" for="exampleInputPassword3">date of birth</label>
date of birth    
                <input type="date" class="form-control" id="exampleInputPassword3" placeholder="Password">
  </div>
  <button type="submit" class="btn btn-default" name="submit" value="submit">submit</button>
</form>

```
Well first off, for selecting a sex you shouldn't use checkboxes, use radio buttons. That's so that your user can select their sex, instead of two sexes.
Make it radios, and then it will be automatically aligned.

```html
<link href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet"/>
<form>
<div class="form-group">
    <label class="sr-only" for="exampleInputPassword3">Password</label>
    <input type="password" class="form-control" id="exampleInputPassword3" placeholder="Password" name="password" >
  </div>
            <div class="form-group">
    <label class="sr-only" for="exampleInputPassword3">Password</label>
    <input type="password" class="form-control" id="exampleInputPassword3" placeholder="Password">
  </div>
         GENDER   
  <div class="container-fluid">
    <input type="radio" name="sex" id="male"><label>Male</label>
<br>
    <input type="radio" name="sex" id="female" value="Female"><label>Female</label>
  </div>
            <div class="form-group">
    <label class="sr-only" for="exampleInputPassword3">date of birth</label>
date of birth    
                <input type="date" class="form-control" id="exampleInputPassword3" placeholder="Password">
  </div>
  <button type="submit" class="btn btn-default" name="submit" value="submit">submit</button>
</form>
```