if ($memslno == 6) { if (strcmp($ofcd, $of1) != 0 and strcmp($ofcd, $of2) != 0 and strcmp($ofcd, $of3) != 0 and strcmp($ofcd, $of4) != 0 and strcmp($ofcd, $of5) != 0 and strcmp($of6, ' ') == 0 and strcmp($bk, '') == 0) { $grpdata->setof6dtl($k, $ofcd); $cond = 1; } } if ($memslno < 1 or $memslno > 6) { break; } if ($cond == 1) { $ppall->setbookedpp($x, 'P'); $ppall->setgrpidpp($x, $gid); $ppall->setforasm($x, $asmf); $ppall->setforpc($x, $pcf); $psd = $ppall->getperscdpp($x); $grpd = $ppall->getgrpidpp($x); $asmf = $ppall->getasmpp($x); $pcf = $ppall->getpcpp($x); $k = $k + 1; $stmt->execute(); } else { $skippp = $skippp + 1; } if ($x < $ppall->countnumb() - 1) { $x = $x + 1; } else { if ($skippp < $grpdata->countnumb() - $k) { $x = 0; } else { echo ' Check Data ....Group Can not be formed ...'; break;