Thread: Help Please !!!

    #1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2013
    Posts
    1
    Rep Power
    0

    Question Help Please !!!


    I have problem declaring the multiple checkbox and get it in foreach loop . Anybody can help Please !

    if ( is_array( $checkboxes ) ) {
    foreach ( $checkboxes as $checkbox ) {
    $paramsUpdate1 = array(
    'ins_setanalysis_id' =>$ret1['id'],
    'ins_analysises_id' =>$checkbox['checkbox'],
    );
    }

    }
  2. #2
  3. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2013
    Location
    Hyderabad
    Posts
    10
    Rep Power
    0

    code edited


    if ( is_array( $checkboxes ) ) {
    foreach ( $checkboxes as $checkbox ) {

    echo $checkbox;
    }

    }
    this is the actual code for your query.
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2013
    Location
    india
    Posts
    6
    Rep Power
    0
    if ( is_array( $checkboxes ) ) {
    foreach ( $checkboxes as $checkbox ) {
    $paramsUpdate1 = array(
    'ins_setanalysis_id' =>checkbox['id'],
    'ins_analysises_id' =>$['checkbox'],
    );
    }

    }

    check this one, it may solve your query.

IMN logo majestic logo threadwatch logo seochat tools logo