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
https://forums.phpfreaks.com/topic/204129-insert-multiple-values/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.