liamloveslearning Posted June 7, 2010 Share Posted June 7, 2010 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 More sharing options...
Psycho Posted June 7, 2010 Share Posted June 7, 2010 You are using a custom class for the database operation. There is no way for us to help you unless we understand that class. Link to comment https://forums.phpfreaks.com/topic/204129-insert-multiple-values/#findComment-1069152 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.