Jump to content

Insert multiple values


Recommended Posts

Hi all,

 

Im having difficulty inserting multiple values into my db, Can anybody see where im going wrong?

 

Form

    <input <?php if (!(strcmp(KT_escapeAttribute($row_rs_model_biographies_['workconsidered']),"1"))) {echo "@@checked@@";} ?> type="checkbox" name="workconsidered" id="workconsidered_1" value="1" />
            <label for="workconsidered_1">Portrait</label>
            </div>
           <div style="width:200px; float:left;">
              <input <?php if (!(strcmp(KT_escapeAttribute($row_rs_model_biographies_['workconsidered']),"2"))) {echo "@@checked@@";} ?> type="checkbox" name="workconsidered" id="workconsidered_2" value="2" />
              <label for="workconsidered_2">Catwalk</label>
              </div>
            <div style="width:200px; float:left;">
              <input <?php if (!(strcmp(KT_escapeAttribute($row_rs_model_biographies_['workconsidered']),"3"))) {echo "@@checked@@";} ?> type="checkbox" name="workconsidered" id="workconsidered_3" value="3" />
              <label for="workconsidered_3">Glamour</label>
              </div>
            <div style="width:200px; float:left;">
              <input <?php if (!(strcmp(KT_escapeAttribute($row_rs_model_biographies_['workconsidered']),"4"))) {echo "@@checked@@";} ?> type="checkbox" name="workconsidered" id="workconsidered_4" value="4" />
              <label for="workconsidered_4">Implied Topless</label>
              </div>
            <div style="width:200px; float:left;">
              <input <?php if (!(strcmp(KT_escapeAttribute($row_rs_model_biographies_['workconsidered']),"5"))) {echo "@@checked@@";} ?> type="checkbox" name="workconsidered" id="workconsidered_5" value="5" />
              <label for="workconsidered_5">Implied Nude</label>
              </div>
          <div style="width:200px; float:left;">
              <input <?php if (!(strcmp(KT_escapeAttribute($row_rs_model_biographies_['workconsidered']),"6"))) {echo "@@checked@@";} ?> type="checkbox" name="workconsidered" id="workconsidered_6" value="6" />
              <label for="workconsidered_6">Glamour Topless</label>
              </div>
           <div style="width:200px; float:left;">
              <input <?php if (!(strcmp(KT_escapeAttribute($row_rs_model_biographies_['workconsidered']),"7"))) {echo "@@checked@@";} ?> type="checkbox" name="workconsidered" id="workconsidered_7" value="7" />
              <label for="workconsidered_7">Glamour Nude</label>
              </div>
            <div style="width:200px; float:left;">
              <input <?php if (!(strcmp(KT_escapeAttribute($row_rs_model_biographies_['workconsidered']),"8"))) {echo "@@checked@@";} ?> type="checkbox" name="workconsidered" id="workconsidered_8" value="8" />
              <label for="workconsidered_8">Promotions</label>
              </div>
            <div style="width:200px; float:left;">
              <input <?php if (!(strcmp(KT_escapeAttribute($row_rs_model_biographies_['workconsidered']),"9"))) {echo "@@checked@@";} ?> type="checkbox" name="workconsidered" id="workconsidered_9" value="9" />
              <label for="workconsidered_9">Other</label>

 

PHP Insert

$upd__model_biographies_->addColumn("workconsidered", "NUMERIC_TYPE", "POST", "workconsidered");

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.